#!/bin/sh
#
# (by) Tomáš Grešlík
#
# $DevNullCZ: ukol-08.reseni.txt,v 1.2 2005/04/22 21:35:40 jp Exp $
#

while getopts hvn:s: volby; do
 case "$volby" in
  h) echo "help"
     exit;;
  v) echo "verzia"
     exit;;
  n) jot $OPTARG;;
  s) echo $OPTARG | sed 's/\(.\)/\1 /g';;
 esac
done

shift `expr $OPTIND - 1`

while [ "$#" != 0 ]; do
 echo $1
 shift 1
done