shell获取当前路径
方式一
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
方式二
SHELL_FOLDER=$(dirname $(readlink -f "$0"))
shell获取当前路径
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
SHELL_FOLDER=$(dirname $(readlink -f "$0"))
本文作者:朝圣
本文链接:www.zh-noone.cn/2020/5/shell获取当前路径
版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0许可协议。转载请注明出处!