Skip to content

Instantly share code, notes, and snippets.

@arunreddy
Created June 3, 2012 09:24
Show Gist options
  • Save arunreddy/2862732 to your computer and use it in GitHub Desktop.
Save arunreddy/2862732 to your computer and use it in GitHub Desktop.
Bash shell snippets.
# To get the current directory.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment