shell:about $0
I know $0 means shell script name ,but how to just show script itself,not /xxx/.../scriptname. Thanks in advance
:) |
Code:
basename $0 Edit: without invoking an external command, you can also do Code:
echo "${0##*/}" |
Quote:
|
You're welcome! :) I edited my post before seeing your reply... I posted a little add-on.
|
All times are GMT -5. The time now is 07:59 PM. |