外壳脚本(),又稱Shell脚本、Shell命令稿、程式化腳本,是一種電腦程式使用的文字檔案,內容由一連串的shell命令組成,經由Unix Shell直譯其內容後運作。被當成是一種腳本語言來設計,其運作方式與直譯語言相當,由Unix shell扮演命令行直譯器的角色,在讀取shell脚本之後,依序執行其中的shell命令,之後輸出結果。利用shell脚本可以進行系統管理,檔案操作等。
在Unix及所有的類Unix系統中,如Linux、FreeBSD等作業系統,都存在shell脚本。依照Unix shell的各種不同類型,shell脚本也有各種不同方言。在DOS、OS/2、Microsoft Windows中的批次檔,跟shell脚本有類似的功能。
功能
外部連結
- [http://www.faqs.org/docs/air/tsshell.html An Introduction To Shell Programming by Greg Goebel]
- [http://steve-parker.org/sh/sh.shtml UNIX / Linux shell scripting tutorial by Steve Parker]
- [http://developer.apple.com/mac/library/documentation/OpenSource/Conceptual/ShellScripting/ Shell Scripting Primer (Apple)]
- [https://web.archive.org/web/20090324070111/http://www.linux.com/articles/34658 What to watch out for when writing portable shell scripts by Peter Seebach]
- [http://freebookcentre.net/UnixCategory/Free-Unix-Shell-Programming-Books-Download.html Free Unix Shell scripting books]
评论 (0)