Re: find and grep help
- From: Enrique Sanchez Vela <esanchezvela@xxxxxxxxx>
- Date: Sun, 1 Jul 2007 18:56:08 -0700
--- 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/
- References:
- Re: find and grep help
- From: Robert Binkley
- Re: find and grep help
- Prev by Date: Re: find and grep help
- Next by Date: Re: find and grep help
- Previous by thread: Re: find and grep help
- Next by thread: Re: find and grep help
- Index(es):