當前腳本全路徑spa
echo $(readlink -f "$0")
獲取絕對路徑(不帶文件名)code
echo $(dirname $(readlink -f "$0"))
獲取文件名(不帶路徑)blog
echo $(basename $(readlink -f "$0"))