徐小玉的博客。
分类: Python/Ruby
2011-08-18 11:09:07
Variable |
Function |
---|---|
$0 |
References the name of the script |
$# |
Holds the value of the number of positional parameters |
$* |
Contains a list of all the positional parameters |
$@ |
Means the same as $*, except when enclosed in double quotes |
"$*" |
Expands to a single argument, for example, "$1 $2 $3" |
"$@" |
Expands to separate arguments, for example, "$1" "$2" "$3" |