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

linux - example of how to use getopts in bash - Stack Overflow

#!/bin/bash usage() { echo "Usage: $0 [-s ] [-p ]" 1>&2; exit 1; } while getopts ":s:p:" o; do case "${o}" in s) s=${OPTARG} ((s == 45 || s == 90)) || usage ;; p) p=${OPTARG ...

stackoverflow.com

網址安全性掃描由 google 提供