This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: find / finds /proc: rather annoying


-----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]