delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; q=dns; s= | |
default; b=FbfwlscsLcemhFkowaO86iwyhRQFo6Blr31xZZBq272Y7D4hs7T12 | |
jCzVp2zSsvkeLE/0fF0H4veK2QlBP6VpKBfS6aFshQczxfwkJcVlM3y7P+dej9kD | |
OAvgnSIt/x1rbNQwA4bPxY5hsvNAQIa4Kz3UFIQbNI7Sh5gbHtowYo= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; s=default; | |
bh=v4ly+jHWfSSeTYv8QzuSAfRvocs=; b=AhCnK9Ml0pmvvwZWuqzJLzUk5RWk | |
ZV5jSiRua3YO+3cIMHh6YUXtUEXbfsbIMMkkagDY6bCkbcPv2qbCehfX3Pcw2gDW | |
XWAogpbCq75rIyvYXqry5FdlgJDB19q4y9E5M64QZKf5ceCnzM55pKjNM9jNFOW7 | |
EPslr/1TEcvqdmc= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*Ad:D*gov, mounted, H*r:Unknown, forever |
X-HELO: | blaine.gmane.org |
To: | cygwin AT cygwin DOT com |
From: | Andrew Schulman <schulman DOT andrew AT epa DOT gov> |
Subject: | Re: find / without traversing /proc |
Date: | Thu, 27 Apr 2017 08:29:28 -0400 |
Lines: | 29 |
Message-ID: | <tko3gcpjrkhn6dgjrroun3eh5fih8p8h99@4ax.com> |
References: | <380-22017442784921354 AT M2W161 DOT mail2web DOT com> <CAKw7uVix05wZvX=in08fjvNWwZb_DUYmYbeTn5XXOBdedNd5DQ AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
X-Archive: | encrypt |
X-IsSubscribed: | yes |
> On 27 April 2017 at 10:49, wrote: > > The command "find /" takes forever, if it completes at all, because of the > > need to traverse the induced directory /proc. Is this directory often > > needed by users? Can it be skipped by setting up "export CYGWIN=something", > > or even by default, with the requirement on the user to induce it if needed? > > There seems to be no switch to the command find that would easily allow > > "but not this subdirectory": if there was, I wouldn't be asking. Quite a > > lot of surfing led me to > > $ find / \( -wholename /proc -o -wholename /dev \) -prune -o -print > > which is really heavyweight syntax for a simple requirement. I am pretty > > certain it leads to the behaviour required "do not traverse" though various > > posters seem to think it just leads to "traverse but do not report" saving > > almost nothing. > > Assuming the syntax is correct, I have not been able to incorporate any > > qualifiers such as -type d or -type f or -type l. Any ideas where to slot > > these so that they work? > > Doesn't the -xdev switch help with this? Right, find / -xdev ... will do it, at the cost of excluding other mounted file systems too. So depending on your search you might need e.g. find / /cygdrive/c -xdev ... Then again excluding /cygdrive/* might be what you want. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |