Tag Info

New answers tagged

0

If you're only interested in bailing if a particular argument is missing, Parameter Substitution is great: #!/bin/bash # usage-message.sh : ${1?"Usage: $0 ARGUMENT"} # Script exits here if command-line parameter absent, #+ with following error message. # usage-message.sh: 1: Usage: usage-message.sh ARGUMENT



Top 50 recent answers are included