bash shell arguments的相關文章
bash shell arguments的相關公司資訊
bash shell arguments的相關商品
![Pass arguments into a function - Bash Shell Scripting Directory For Linux / UNIX](https://www.iarticlesnet.com/pub/img/site/s_09.jpeg)
Pass arguments into a function - Bash Shell Scripting Directory For Linux / UNIX
瀏覽:508
日期:2024-07-26
Shell functions have their own command line argument. Use variable $1, $2..$n to access argument passed to the function. The syntax is as follows: name(){ arg1=$1 arg2=$2 command on $arg1 } To invoke the the function use the following syntax: name foo bar...看更多