shell script questionhi,
i have a shell script called abc.sh
i need to use its file name (abc) as the parameter of this script (abc.sh)
is there any way other than hardcode it?
thanks for help.
用$0
echo $0 看看.显示的是不是abc.sh,如果不要.sh,那再用sed命令裁剪掉.不知道是不是你想问的.