$ cat << EOF > myfile > line one > line two > line three > EOF $ code example Example: bash multiline ech cat <<EOT >> my_file.txt my text line 1 my text line 2 EOT