Shell 函數參數

Shell函數參數 概述 在Shell中,調用函數時能夠向其傳遞參數,在函數體內部,經過$n的形式來獲取參數的值,例如,$1表示第一個參數,$2表示第二個參數…web #!/bin/bash funWithParam() { echo 「the value of first parameter is $1」 echo 「the value of second parameter is $2」 }
相關文章
相關標籤/搜索