bash multiline ech

C++
cat <<EOT >> my_file.txt
my text line 1
my text line 2
EOT
Source

Also in C++: