Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh -e
- usage() {
- cat <<_EOS_
- Usage: prog arg [0-5]
- _EOS_
- exit 1
- }
- main() {
- case $2 in
- [0-5]) echo $1 $2;;
- *) usage;;
- esac
- }
- main $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement