getopts's Examples

Built-in shell command for parsing script options.

while getopts "u:p:" opt; do
  echo "Option: $opt, Value: $OPTARG"
done

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us