Shell腳本函數定義和函數參數

shell容許將一組命令集或語句造成一個可用塊,這些塊稱爲shell函數。shell shell中函數的定義格式以下: bash 函數名(){     command1     command2     ...     commandN     [ return value ] } 若是願意,可在函數名前加上關鍵字function,這取決於使用者。 函數 function 函數名(){     c
相關文章
相關標籤/搜索