cat command for text files
hey all, i remember reading that there was a command with cat that allowed me to enter, which will let me type some text into a file and ends when i hit enter or esc.
Does anyone recall what the console command is? Thanks. |
There is, I was following instructions the other day that had me use it. Can't remember what it was though :( I'll hunt around my history see if I can find it...
|
Okay, it's actually simple I figured it out playing in the console trying to remember:
Code:
cat >filename.txt |
Very good and you can do this to append to an existing file
cat >>filename.txt |
Another variation on the cat command to write text files.
cat > filename.txt << end This capture all input until the word "end" is typed then automatically dump to "filename.txt" KC |
thanks guys :)
|
All times are GMT -5. The time now is 11:34 AM. |