Append Line to a File

/ Published in: Bash
Save to your folder(s)

Running this command will append a line with given values to a file you specify. Replace words between < and > with the values you desire.

Copy this code and paste it in your HTML
  1. echo "<string to append>" >> <file>
  3. #Example:
  5. echo "My string" >> /home/user/myfile.txt

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.