m********r 发帖数: 811 | 1 # Description of the script
Abstract \${0##*/} - Merge a set of root files defined by a expresion.
# Description of how to use the script
Usage \${0##*/} "-n -p|-r [-d] dir1 [dir2] ..."
================
what does these trash-like symbols \${0##*/} mean? |
m********r 发帖数: 811 | 2 abstract=""
usage="Usage: \${0##*/} [options] [arg1] [arg2] ..."
function Abstract()
{
abstract=$@
}
function Usage()
{
usage=$@
}
function Option()
{
eval "options=\"$options $1,$2,$3\""
eval "main_help=\"$main_help \t -$1,--$2\n\""
eval "main_help=\"$main_help \t $4\n\n\""
}
【在 m********r 的大作中提到】 : # Description of the script : Abstract \${0##*/} - Merge a set of root files defined by a expresion. : # Description of how to use the script : Usage \${0##*/} "-n -p|-r [-d] dir1 [dir2] ..." : ================ : what does these trash-like symbols \${0##*/} mean?
|
t*****g 发帖数: 1275 | 3 ${0##*/} is to get the basename of the script.
【在 m********r 的大作中提到】 : # Description of the script : Abstract \${0##*/} - Merge a set of root files defined by a expresion. : # Description of how to use the script : Usage \${0##*/} "-n -p|-r [-d] dir1 [dir2] ..." : ================ : what does these trash-like symbols \${0##*/} mean?
|
m********r 发帖数: 811 | 4 Thanks a lot! it does output the name of the script itself. |