遍匈 / Shell縮殻 /

Shell痕方歌方

<貧匯准 和匯准>
壓Shell嶄?距喘痕方扮辛參?凪勧弓歌方。壓痕方悶坪何?宥狛 $n 議侘塀栖資函歌方議峙?箭泌?1ドル燕幣及匯倖歌方?2ドル燕幣及屈倖歌方...

揮歌方議痕方幣箭?
#!/bin/bash
funWithParam(){
 echo "The value of the first parameter is 1ドル !"
 echo "The value of the second parameter is 2ドル !"
 echo "The value of the tenth parameter is 10ドル !"
 echo "The value of the tenth parameter is ${10} !"
 echo "The value of the eleventh parameter is ${11} !"
 echo "The amount of the parameters is $# !" # 歌方倖方
 echo "The string of the parameters is $* !" # 勧弓公痕方議侭嗤歌方
}
funWithParam 1 2 3 4 5 6 7 8 9 34 73
塰佩重云?
The value of the first parameter is 1 !
The value of the second parameter is 2 !
The value of the tenth parameter is 10 !
The value of the tenth parameter is 34 !
The value of the eleventh parameter is 73 !
The amount of the parameters is 12 !
The string of the parameters is 1 2 3 4 5 6 7 8 9 34 73 !"
廣吭?10ドル 音嬬資函及噴倖歌方?資函及噴倖歌方俶勣${10}。輝n>=10扮?俶勣聞喘${n}栖資函歌方。

総翌?珊嗤叱倖蒙歩延楚喘栖侃尖歌方?念中厮将戻欺?
蒙歩延楚 傍苧
$# 勧弓公痕方議歌方倖方。
$* ?塋硝窠亟?欷璜垜?腸諒釥?
$@ 嚥$*屢揖?徽頁待嗤曝艶?萩臥心Shell蒙歩延楚
$? 痕方議卦指峙。

<貧匯准 和匯准>

AltStyle によって変換されたページ (->オリジナル) /