Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [[ $# > 0 ]]
- do
- key="$1"
- case $key in
- --help)helpval="1";;
- -f)viewFish="1";;
- -s)viewShark="1";;
- )fileinput="$key";; #how the hell do i do it
- *) ;;
- esac
- shift # past argument or value
- done
- echo "$fileinput"
- echo "$helpval"
- echo "$viewShark"
- echo "$viewFish"
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement