heredoc en bash code example
Example: bash here document to file
cat << EOF
The current working directory is: $PWD
You are logged in as: $(whoami)
EOF
cat << EOF
The current working directory is: $PWD
You are logged in as: $(whoami)
EOF