find -exec

Αρχική Σελίδα
Συνημμένα:
Μήνυμα σαν ηλεκτρονικό μήνυμα
+ (text/plain)
Delete this message
Reply to this message
Συντάκτης: Norman Zimmer
Ημερομηνία:  
Προς: Linux User Schwabach
Αντικείμενο: 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.