在bash shell 指令稿中可以像一般程式語言一樣自己定義函數,以下是一個簡單的範例: # 定義函數 function hello () { echo "Hello, world." }.
確定! 回上一頁