shell脚本获取脚本所在绝对路径
分类:Linux, Operating System
阅读 (1,078)
4月 202020
1 2 3 |
script_folder=$(cd "$(dirname "$0")"; pwd) echo ${script_folder} |
1 2 3 |
script_folder=$(cd "$(dirname "$0")"; pwd) echo ${script_folder} |
Sorry, the comment form is closed at this time.