RE: find will nicht

From: Frank Gruender <root(at)mc5sys.in-berlin.de>
Date: Mon, 3 May 1999 08:47:13 +0200

M.Santhoff(at)t-online.de (Marc Santhoff) schrieb:

> Tag!
>
> Ich hab' da ein (hoffentlich) triviales, offenbar syntaktisches
> Problemchen mit 'find':
>
> % find /msdos -name "*.htm" -exec grep lab {} ;
> find: -exec: no terminating ";"
>
> Warum das? Ist doch alles da.

Eigentlich schon. Allerdings beansprucht die shell schon die Zeichen {};.

Mit find /msdos -name "*.htm" -exec grep lab \{\} \; sollte es funktionieren.
Mit dem Backslash zeigst Du der shell an, dass es sich um Sonderzeichen
handelt, die dann direkt an find weitergegeben werden.

Schau mal in der man page deiner shell unter Quoting nach.

Frank

-- 
elwood(at)mc5sys.in-berlin.de				    mc5sys.in-berlin.de
Frank Gruender, Berlin, FRG, EU				    Powered by FreeBSD!
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 03 May 1999 - 08:46:58 CEST

search this site