This is the mail archive of the
mailing list for the Cygwin project.
Re: find / finds /proc: rather annoying
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, fergus at bonhard dot uklinux dot net
- Date: Thu, 25 Jan 2007 06:50:45 -0700
- Subject: Re: find / finds /proc: rather annoying
- References: <45B8B2EB.firstname.lastname@example.org>
-----BEGIN PGP SIGNED MESSAGE-----
According to fergus on 1/25/2007 6:38 AM:
> I either missed or was too stupid to understand the response, if there
> was one, to an earlier anguished query: is it possible to qualify the
> find /
> with a switch so that /proc is not found? If so can you tell me how?
The same way you tell find to ignore any other directory. 'man find' or
'info find' are your friends.
Try one of these instead, they have different behaviors, but both should
find / -wholename /proc -prune -o \( <your original query> \) -print
find / -xdev <your original query>
Don't work too hard, make some time for fun as well!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html