Skip to content

Instantly share code, notes, and snippets.

@bhuvidya
Last active May 15, 2020 00:36
Show Gist options
  • Save bhuvidya/57ebbda3460f70ef356ce4db4701c698 to your computer and use it in GitHub Desktop.
Save bhuvidya/57ebbda3460f70ef356ce4db4701c698 to your computer and use it in GitHub Desktop.
Handy Bash shell code snippets.

Get script directory

$ 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