Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index=0
- options=$@
- arguments=($options)
- for argument in $options; do
- index=`expr $index + 1`
- case $argument in
- -u) user="${arguments[index]}" ;;
- -p) password="${arguments[index]}" ;;
- -d) database="${arguments[index]}" ;;
- -f) filename="${arguments[index]}" ;;
- -h) host="${arguments[index]}" ;;
- -r) root="${arguments[index]}" ;;
- -m) max_archive_files="${arguments[index]}" ;;
- esac
- done
Add Comment
Please, Sign In to add comment