#!/usr/bin/env/bash
while getopts ':hpstu:' opt; do
case $opt in
p)
ENV="prod"
;;
s)
ENV="test"
;;
t)
ENV="int"
;;
u)
RUSER="$OPTARG"
;;
\?|h)
echo "$0 -p|-s|-t -u <user> file [file] ..."
exit 1
;;
esac
done
shift $((OPTIND-1))
FILES=( "${@}" )