Output of a command within here-document
Advertisements I have a script which contains the code block: cat << EOF > new_script.sh … echo "$(pwd)" >> log.txt … EOF The script new_script.sh is set to run at a later time. Bash recognizes the $(pwd) within the script and evaluates it before it looks at the entire EOF block, so the pwd of… Read More Output of a command within here-document