#!/bin/bash
# filename: getopts-7.sh
while getopts "abc" opts
do
  case $opts in
    a)
      ;;
    b)
      ;;
    c)
      ;;
  esac
done

shift `expr $OPTIND - 1`
echo $*
