...
- You cannot include any spaces after the second
EOF
(or else it won’t signal the end of the file). - You can use BASH variables, for example $PWD inside the script, but they will be expanded. If you want the script to dynamically dereference a BASH variable, you should escape the dollar sign with a backslash (`\\$`).
Once your reader knows about the cat trick, or if they are a Linux expert already, then you can easily share elaborate installation procedures with them. Our group uses it extensievly when sharing instructions with our users.
...