Skip to content

Instantly share code, notes, and snippets.

@haoliplus
Created March 9, 2016 07:27
Show Gist options
  • Save haoliplus/1c810c74597d2f5e354f to your computer and use it in GitHub Desktop.
Save haoliplus/1c810c74597d2f5e354f to your computer and use it in GitHub Desktop.
get the path of current 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