Skip to content

Instantly share code, notes, and snippets.

@bhuvidya
Created May 15, 2020 00:35
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 bhuvidya/b58b0cdb07444925f2a3589a2b727be2 to your computer and use it in GitHub Desktop.
Save bhuvidya/b58b0cdb07444925f2a3589a2b727be2 to your computer and use it in GitHub Desktop.
Handy Bash shell code snippets.
# get dir of loaded script
$ CWD="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment