Anexar várias linhas para arquivar Linux
echo "line 1 content
line 2 content
line 3 content" >> myfile.txt
Nervous Newt
echo "line 1 content
line 2 content
line 3 content" >> myfile.txt
$ (cat <<EOF )>>file3
line1
line2
EOF
$ cat file3
line1
line2