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

[SOLVED] Re: [BASH] getopts



N'Abend Bruno,

Am 2005-03-19 23:32:19, schrieb Bruno Hertz:

> while getopts "a:f:b:" FLAG; do
>    echo "FLAG : $FLAG"
>    echo "ARGS : $OPTARG"
>    case $FLAG in
>      a)  echo "ATTR : $OPTARG" ;;
>      f)  echo "FORE : $OPTARG" ;;
>      b)  echo "BACK : $OPTARG" ;;
>    esac
> done

Danke jetzt gehts...

Nur schade, das man keine langen OPTIONEN verwenden kann.

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: