Introduction
Here documents let you send multiple lines of text or commands to a program easily without typing them one by one.
<<EOF
Your text or commands here
EOFcat <<EOF Hello World EOF
cat <<END Line 1 Line 2 END
cat <<'EOF' $HOME is not expanded here EOF
#!/bin/bash
cat <<EOF > greetings.txt
Hello, friend!
Welcome to scripting.
EOF
cat greetings.txtcat <
cat <<'EOF' Hello $USER EOF
Path is: $PATH
Pass the test and this pattern moves unknown