find -exec

Góra strony
Załączniki:
Wiadomość jako email
+ (text/plain)
Delete this message
Reply to this message
Autor: Norman Zimmer
Data:  
Dla: Linux User Schwabach
Temat: 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.