Jednoduchy skriptik II
Tomas Cermak
Cermak na Aquasoft.cz
Čtvrtek Duben 27 10:31:51 CEST 2000
"Miroslav BENES" <mbenes na tenez.cz> writes:
>
> Mam to v tomto tvaru a porad je to blbe :
>
>
> #!/bin/sh
>
> while [ $# -gt 0 ]
> if [ -f $1 ]; then
....
> fi
>
> shift
> done
>
>
> Ve skoro stejne podobe jsem to vcera vycetl z manualu a hlasilo to
> (stejne jako dnes) :
>
> # ./test *
> ./test: syntax error near unexpected token `done'
> ./test: ./test: line 20: `done'
Co takhle "do" za prikaz "while" :-)
while [ $# -gt 0 ] ; do
Další informace o konferenci Linux