Return to Snippet

Revision: 4341
at November 28, 2007 19:56 by engel


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

#Example:

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

Revision: 4340
at November 28, 2007 19:55 by engel


Updated Code
#!/bin/sh
echo "<string to append>" >> <file>

#Example:

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

Revision: 4339
at November 28, 2007 19:55 by engel


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

#Example:

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

Initial URL


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

Initial Title
Append Line to a File

Initial Tags
file, Bash, line

Initial Language
Bash