Re: find and grep help



--- Robert Binkley <leebinkley@xxxxxxxxx> wrote:


I have a script question though

say I want to search for .rhosts and .netrc file
thought a system
but I also withing this search criteria exclude all
nfs filesystems and /home /proc

any ideas.

this single line should do it.

find / \! \( -name /proc -prune -o -name /home -prune
-o -type nfs -prune \) -o \( -name .rhosts -o -name
.netrc \) -print





--------------------------------------
"What you have been obliged to discover
by yourself leaves a path in your mind
which you can use again when the need
arises." --G. C. Lichtenberg

http://themathcircle.org/



____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/