bash script

Robert Toth robert na kiss.sk
Čtvrtek Listopad 19 13:59:00 CET 1998


You wrote:
> Mam nasledujici script:
>
> #!/bin/bash
> if [ -e *~ ];     then rm *~ ;     fi
> if [ -e .*~ ];    then rm .*~ ;    fi
> if [ -e *.bak ];  then rm *.bak ;  fi
>
> a hlasi mi chybu:
> /cesta/script: [: too many arguments
>
> Kde je chyba? Mohu nejak pouzit takovyto hutny zapis (verze rozdelena na
> mnozstni radku mi snad funguje)

[ -e *~ ] && rm *~
atd.

========================================================
Robert Toth
KISS Ltd.  (Kochman Information Systems & Services)
Janotova 15                   Tel  : +421-7-65423366
84105 Bratislava              Fax  : +421-7-65428828
Slovak Republic               Email: Robert.Toth na kiss.sk
=========   NeXTmail & MIME welcome!  ==================



Další informace o konferenci Linux