如何显示脚本的名字?
发表于 : 2010-01-01 20:31
刚学bash编程,有个问题一直不知怎么解决.
比如一个脚本,名为check
echo The scriptname is $0
执行时,./check
显示的是
The scriptname is ./check.
./如何去掉?
比如一个脚本,名为check
echo The scriptname is $0
执行时,./check
显示的是
The scriptname is ./check.
./如何去掉?