This is the mail archive of the
cygwin
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.9000108@bonhard.uklinux.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
> command
> 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
ignore /proc:
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 ebb9@byu.net
-----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
iD8DBQFFuLW084KuGfSFAYARAtYbAKDIpHvG8YV8BUdaOf0wFo1IHxYeSgCcDyzo
m9spiS9JSQxslA/lLZG7ubU=
=uNNB
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/