delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/25/08:50:50

X-Spam-Check-By: sourceware.org
Message-ID: <45B8B5B5.6070008@byu.net>
Date: Thu, 25 Jan 2007 06:50:45 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, fergus AT bonhard DOT uklinux DOT net
Subject: Re: find / finds /proc: rather annoying
References: <45B8B2EB DOT 9000108 AT bonhard DOT uklinux DOT net>
In-Reply-To: <45B8B2EB.9000108@bonhard.uklinux.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----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 AT byu DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019