由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - any body help me about these sentence in the shell script?
相关主题
bash script真难看懂关于server的/var/www/usage目录
shell script question求助:bash里面break 和exit命令不能提前终止循环
shell script和variable index有没有什么cpu/memory usage画图软件
ubuntu 里 term的字的颜色怎么显示?Damn this is pretty.
how to rename files -- waiting on linehow big is your swap?
quick help pls....about time command in linux
怪事KDE 是好吃猪。。。
How to change exe color in "ls" in ubuntu 12.04 ?how to check disk usage per user?
相关话题的讨论汇总
话题: script话题: usage话题: abstract话题: sentence
进入Linux版参与讨论
1 (共1页)
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.
1 (共1页)
进入Linux版参与讨论
相关主题
how to check disk usage per user?how to rename files -- waiting on line
我还有个问题quick help pls....
ubuntu 10.10 ibus CPU usage 100%的看过来怪事
kde vs gnomeHow to change exe color in "ls" in ubuntu 12.04 ?
bash script真难看懂关于server的/var/www/usage目录
shell script question求助:bash里面break 和exit命令不能提前终止循环
shell script和variable index有没有什么cpu/memory usage画图软件
ubuntu 里 term的字的颜色怎么显示?Damn this is pretty.
相关话题的讨论汇总
话题: script话题: usage话题: abstract话题: sentence