# File: shifty

if [ $# -eq 0 ] ; then
   echo "Usage: shifty arg1 [ arg2 ... argn ]"
   exit   # Premature exit
fi
echo Number of arguments supplied: $#.
echo $1 $2
shift
echo $1 $2
if [ $# -gt 3 ] ; then    # If at least 3 remaining
   shift 3
   echo $1 $2
else
   echo "That's enough shifting for now."
fi 
