Bash脚本中获取当前脚本的所在路径

top=$(dirname -- $(readlink -f -- "$0"))
No votes yet

发表新评论

此内容将保密,不会被其他人看见。 If you have a Gravatar account, used to display your avatar.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.