bash here document example
cat << EOF > file.txt
The current working directory is: $PWD
You are logged in as: $(whoami)
EOF
Are there any code examples left?
New code examples in category Shell/Bash
cat << EOF > file.txt
The current working directory is: $PWD
You are logged in as: $(whoami)
EOF