Skip to content

Instantly share code, notes, and snippets.

@haoliplus
Created March 14, 2016 02:28
Show Gist options
  • Save haoliplus/8e7f0bc9962293e33453 to your computer and use it in GitHub Desktop.
Save haoliplus/8e7f0bc9962293e33453 to your computer and use it in GitHub Desktop.
get dir path in a script
export FILEPATH=$(cd `dirname $0`; pwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment