append to a file from terminal code example
Example: append to a file from terminal
echo "text to append" >> filename
# for multiple lines
echo -e "line1\nline2\nline3" >> filename
echo "text to append" >> filename
# for multiple lines
echo -e "line1\nline2\nline3" >> filename