[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[BASH] getopts



N'Abend,

ich will gerade 'getopts' in ein script einbauen was ungefähr so
aufgerufen wird:

        schkript  -a 1 -f 1 -b 5

und ich habe

  __( 'stdin' )_________________________
 /
| while getopts "a:f:b:" FLAG ARGS ; do
|   echo "FLAG : $FLAG"
|   echo "ARGS : $ARGS"
|   case $FLAG in
|     a)  echo "ATTR : $ARGS" ;;
|     f)  echo "FORE : $ARGS" ;;
|     b)  echo "BACK : $ARGS" ;;
|   esac
| done
 \______________________________________

aber irgendwie passiert da nichts...

Kann mir jemand sagen, was hier falsch ist ?

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: