0

how to add to last line in echo command

I have created a text file with many lines, while i give echo " SOME CONTENT" > file.txt it removes all my codes. I just need to add the new line to that file how to do??

grayson
asked May 12, 2017
1 Answer
0

If you want to add new line into file using the echo command as given below,

echo ""content"" > file , in this command has been used to overwrite the content into the file.

Echo ""content"" >> file, in this command has been used to add new content into the file."
View More
linuxhelp
answered Jan 14, 2019
Your Answer
||||
x
 
100:0