find -exec

Etusivu
Liitteet:
Viesti alkuperäisessä muodossaan
+ (text/plain)
Poista viesti
Vastaa
Lähettäjä: Norman Zimmer
Päiväys:  
Vastaanottaja: Linux User Schwabach
Aihe: find -exec
Hi Liste,

ich möchte gerne einen Befehl über find ausführen, nach dem Prinzip:
find /xxx/* -exec befehl {} \;

Das funktioniert soweit, nur kommt ein Fehler wenn find nichts findet.
Wie kann ich find dazu bringen für den Fall dass er nichts findet,
einfach nix zu machen? Nur ohne Fehlermeldung.

Gruß

Norman

--

Norman "bigboss" Zimmer
GnuPG-ID: 0x1842A431

Packets don't lie, but they may not tell everything if captured by a
misconfigured filter.