跳轉到內容

Bash Shell 指令碼/外部程式

來自華夏公益教科書,開放的書籍,開放的世界

Bash 作為一種 shell,實際上是一種“粘合”語言。它幫助程式互相協作,並從中受益。請務必 搜尋網際網路 獲取所需資訊 - 存在大量的命令列工具可用。

使用 whiptail

[編輯 | 編輯原始碼]

Whiptail 是一個程式,允許 shell 指令碼向用戶顯示 對話方塊,以供資訊目的,或以友好的方式從使用者獲取輸入。Whiptail 預設包含在 Debian 和各種其他 GNU/Linux 發行版中。

來自 GNU/Linux 字典:whiptail 是一個使用 newt 而不是 ncurses 的“dialog”替代品。
從它的自述檔案:whiptail 被設計為與 dialog(1) 相容,但功能更少:某些對話方塊未實現,例如 tailbox、timebox、calendarbox 等。

參見 Bash Shell 指令碼/Whiptail.

參見 AWKman awk (man gawk)。

參見 sedman sed

參見 grepman grep

使用 man、info 和 help

[編輯 | 編輯原始碼]

這三個程式是你可以找到幫助或參考的地方。man 顯示 roff 手冊頁,info 顯示 texinfo 文件,而 help 顯示內建幫助。

在命令列程式中追加 --long-help--help--usage 也可能提供使用資訊。可能的同義詞包括 -H-h

請嘗試一下

man --help
man man

info --help
man info
info info

help help

maninfo 的介面中按下 h 也可以提供一些指導。

華夏公益教科書