I would like to append text to a file. so i wrote in bash
echo text >> file.conf
However it doesnt leave a new line. So i can only do this once. How do i add a new line?
|
feedback
|
|
option 1:
option 2:
option 3:
| |||
feedback
|
|
Just to add to akira's response Option 4: use This ends up looking like | |||||
feedback
|
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