Linux中变量$#,$@,$0,$1,$2,,$3,$4,$5,$6,$7,$8,$9,$*,$$,$?的含义
echo "scname:$0"
echo "first :$1"
echo "second:$2"
echo "third:$3"
echo "fourth:$4"
echo "fifth:$5"
echo "sixth:$6"
echo "seventh:$7"
echo "eighth:$8"
echo "ninth:$9"
echo "argume:$@"
echo "show process id:$$"
scname:./variable.sh
first :aa
second:bb
third:cc
fourth:dd
fifth:ee
sixth:ff
senventh:gg
eighth:hh
ninth:ii
argume:aa bb cc dd ee ff gg hh ii
show parm list:aa bb cc dd ee ff gg hh ii
show process id:1635
show precomm stat: 0
.......
本文出自 “叱诧少将” 博客,请务必保留此出处http://long32.blog.51cto.com/1073540/1394772
Linux中变量$#,$@,$0,$1,$2,,$3,$4,$5,$6,$7,$8,$9,$*,$$,$?的含义,古老的榕树,5-wow.com
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。