SHELL-----腳本執行 、定義變量、特殊變量、read的用法、命令結果賦值給變量

一.三種腳本執行方法: 1.sh script.sh | bash script.sh ##沒有執行權限時 2.path/script.sh | ./script.sh ##絕對路徑,當前目錄下 3.source script.sh | . script.sh ##這種方式會使用source或.號來讀如指定shell文件,並會把其餘shell中的變量值或函數返回給父shell繼續使用 二. 定
相關文章
相關標籤/搜索