shell編程基礎 Part01_腳本執行方法與變量

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