stanlo
Search This Blog
Tuesday, June 28, 2011
Shell Scripting: basename variable
"${0##*/}"
is the equivalent of
"basename $0".
I.e. From
/usr/bin/sh
we get just
sh.
Also try this to execute commands
$(shell command)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment