BetterSense
April 17th, 2009, 09:22 PM
I remember seeing an example of how to simply use either echo or cat to send text to a file, with the ability to constantly append until you enter a keyword. It was something like
cat >>mynotes.txt <<EOF
and you could type as long as you wanted until you typed EOF (which could be any 'code word' you wanted. But when I try this now, it acts like it's working, but after I type EOF I get a blank file called mynotes.txt.
cat >>mynotes.txt <<EOF
and you could type as long as you wanted until you typed EOF (which could be any 'code word' you wanted. But when I try this now, it acts like it's working, but after I type EOF I get a blank file called mynotes.txt.