bash script
Matus fantomas Uhlar
uhlar na fantomas.sk
Pondělí Prosinec 14 11:47:44 CET 1998
Robert Toth <robert na kiss.sk> wrote:
->> 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
-> [ -e *~ ] && rm *~
co urobi v pripade existencie viac suborov presne tu istu chybu;
divoke znahy totiz expanduje shell na rozdiel od DOSu kde si to programy]
robia same
fakt najjednoduchsie je
rm -f *~ .*~ *.bak 2>/dev/null
--
Matus "fantomas" Uhlar, sysadmin at NETLAB+ Kosice, Slovakia
BIC coord for *.sk; admin of netlab.irc.sk; co-admin of irc.felk.cvut.cz
Další informace o konferenci Linux