shell 中函數的使用

shell 中函數的使用 1 . shell中函數的基本使用,咱們建立一個文件命名爲hellloWorld.bash,在文件中輸入如下內容 #!/bin/bash # shell中的函數 func () { echo "step 2" return } # 主要的程序是下邊的語句 echo "step 1" #調用func函數 func echo "step 3" 2 . 在HTML的輸出
相關文章
相關標籤/搜索