Skip to content

Instantly share code, notes, and snippets.

@bhuvidya
Created May 15, 2020 00:35
Show Gist options
  • 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