bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Find Info improvement #3


From: Dan Jacobson
Subject: Re: Find Info improvement #3
Date: 21 Jun 2002 10:40:50 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Below is Tom Hageman's reply which ought to be incorporated into the
manual.

>>- For example, to skip the directory `src/emacs' and all files and
>>- directories under it, and print the names of the other files
>>- found:
>> 
>>- find . -path './src/emacs' -prune -o -print
>> 
>> It seems like a mighty challenge to figure out how to have it skip
>> more than one directory tree, and I wish it would say so in the Info
>> page.

Tom> You may want to assimilate the parts about the -o operator first, then  
Tom> it's more of the same:

Tom>    find . -path './src/emacs' -prune -o -path './more/junk' -prune  
Tom> -o -print

Tom> or alternatively (adding ( ) grouping in the mix -- which need to be  
Tom> quoted or \-escaped to protect it from the regular UNIX shells):

Tom>    find . '(' -path './src/emacs' -o -path './more/junk' ')' -prune  
Tom> -o print

[writing \( is better than '(']
-- 
http://jidanni.org/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]