Guest User

Untitled

a guest
Oct 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. while getopts ":hd:" opt; do
  2. case $opt in
  3. h)
  4. echo $usage
  5. exit 0
  6. ;;
  7. d)
  8. shift 2
  9. if [ "$OPTARG" -eq "$OPTARG" ] ; then # ako dalsi argument mame cislo
  10. depth=$OPTARG
  11. fi
  12. ;;
  13. ?)
  14. shift 1
  15. ;;
  16. :)
  17. shift 1
  18. ;;
  19. esac
  20. done
  21. echo $1
Add Comment
Please, Sign In to add comment