Skip to content

Instantly share code, notes, and snippets.

@jonathanhudak
Created October 22, 2022 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanhudak/16a7d72818f47cdfb3f0c056a22f2207 to your computer and use it in GitHub Desktop.
Save jonathanhudak/16a7d72818f47cdfb3f0c056a22f2207 to your computer and use it in GitHub Desktop.
# https://linuxize.com/post/bash-write-to-file/
cat << EOF > file.txt
The current working directory is: $PWD
You are logged in as $(whoami)
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment