經安全檢測,此網站為安全網站,請放心前往原始網址!

while getopts用法 - 雨的印記 - 流淌在你身體裡的河..

Linux命令 - getopts 問題,向腳步傳遞參數的時候如何取得一個一個的option ... 直接看 Example.sh: # !/ bin / sh while getopts 'a:b:c' myoption do case $myoption in a) ls - al ;; b) ls - l $OPTARG ;; c) ls - l esac 用法和效果: Example.sh -a stringa 就會執行 ls ...

www.iyism.com

網址安全性掃描由 google 提供