${0##*/}
base=${0##*/}
can someone please explain this ? |
Where did you get it from? To be honest, unless called in a script it is quite meaningless.
You may also like to read http://www.catb.org/~esr/faqs/smart-questions.html, as your current effort leaves little to be desired. |
Same effect as
Code:
$(basename $0) --C |
anandg111, see the bash(1) manpages, under the "Parameter Expansion" section. There are a number of interesting features here, none of which require firing off a child process.
Some of my favorites: Code:
[texas] ~> _line='Stay warm' |
A really good page on Parameter Expansions & related tricks http://wiki.bash-hackers.org/syntax/pe
|
All times are GMT -5. The time now is 09:55 PM. |