Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while getopts ":hd:" opt; do
- case $opt in
- h)
- echo $usage
- exit 0
- ;;
- d)
- shift 2
- if [ "$OPTARG" -eq "$OPTARG" ] ; then # ako dalsi argument mame cislo
- depth=$OPTARG
- fi
- ;;
- ?)
- shift 1
- ;;
- :)
- shift 1
- ;;
- esac
- done
- echo $1
Add Comment
Please, Sign In to add comment