Skip to content

Instantly share code, notes, and snippets.

@echohn
Created October 8, 2015 10:17
Show Gist options
  • Save echohn/e25adc3569f32b1dab30 to your computer and use it in GitHub Desktop.
Save echohn/e25adc3569f32b1dab30 to your computer and use it in GitHub Desktop.
get dir of script(shell)
dir_of_script=$(cd "$(dirname "$0")"; pwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment