cat <<EOF > file1.txt
hello
world
EOF