获取当前shell脚本所在的路径(目录), 支持软链接.
DIR=`S=\`readlink "$0"\`; [ -z "$S" ] && S=$0; dirname $S`
Notify me of followup comments via e-mail
Cancel Reply
程序员月薪调查
查看结果