what is the command to add text into a text file?
what is the command to add text into a text file?
anyone tell me? |
It's cat >> (name of file here) (text you want to add here) press ^D (Control D) when you're done.
Example: Code:
cat >> shoppinglist.txt must buy some champagne ^D |
Alternately, you could also go:
Code:
$ echo "oranges, bananas, eggs, bacon" >> shoppinglist.txt |
All times are GMT -5. The time now is 08:41 AM. |