Append Line to a File

echo "<string to append>" >> <file>

#Example:

echo "My string" >> /home/user/myfile.txt

source

Leave a Reply