Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while getopts ":a" opt; do
- case $opt in
- a)
- echo "-a was triggered!" >&2
- ;;
- \?)
- echo "Invalid option: -$OPTARG" >&2
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement