Here Documents and Here Strings
<<EOF feeds multi line text to a command and <<< feeds a string.
Example
name=Ada
cat <<EOF
Hello $name
Total: $((2+3))
EOF
cat <<'EOF'
No $expansion here
EOF
wc -w <<< "one two three"Result
Hello Ada Total: 5 No $expansion here 3
Exercise
Feed a string.
wc -w "a b"
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.