Skip to content

Instantly share code, notes, and snippets.

@Twwy
Created February 26, 2015 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Twwy/d5944bef6d2056bd9c12 to your computer and use it in GitHub Desktop.
Save Twwy/d5944bef6d2056bd9c12 to your computer and use it in GitHub Desktop.
shell命令集合

获取脚本当前执行的路径

path=$(cd "$(dirname "$0")"; pwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment