Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 255 Bytes

File metadata and controls

11 lines (9 loc) · 255 Bytes

Case statement that skips option dash flags

Example:

case "$x" in
    --) printf "a double dash indicates no more options\n" ;;
    -*) printf "a starting dash indicates an option\n" ;;
    *) printf "anything else is an argument\n" ;;
esac