I would like to append text to a file. So I wrote in bash
echo text >> file.conf
However it doesn't leave a new line. So I can only do this once. How do I add a new line?
|
option 1:
option 2:
option 3:
|
|||||
|
|
Just to add to akira's response Option 4: use This ends up looking like |
|||||
|
echoadds a newline by default. – Dennis Williamson Jun 21 '10 at 9:58echoby default does leave a newline - do you need it to leave two? Also, if you're running this on a linux system and opening the file on a windows or mac system, make sure your editor supports *nix newlines, or it'll appear all on one line even though it's on multiple lines. – Darth Android Jun 21 '10 at 10:01