bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #56106] make it easier to exclude a directory


From: Bernhard Voelker
Subject: [bug #56106] make it easier to exclude a directory
Date: Tue, 9 Apr 2019 01:55:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Update of bug #56106 (project findutils):

                Category:                    None => find                   
                  Status:                    None => Works For Me           
             Assigned to:                    None => berny                  

    _______________________________________________________

Follow-up Comment #1:

Wow, what a stackoverflow thread!  I didn't read through it much
as the proposed commands seem to address some other aspects as well.

Your examples often use -path (alias -wholename) while I think you
wanted -name.

> The expected behavior would be to exclude everything matching a
> given prefix or directory, including the directory itself, from
> the set of files or directories that would normally be returned
> without the added predicate.

What about the following (which is documented both in the man page
and the texinfo documentation)?


$ find . -name .git -prune -o -print


As some users already seem to be overwhelmed with the complexity
and possibilities of find(1) predicates, adding yet another probably
conflicting way would be even more confusing.
Finally, the above works quite nice, so I don't see a need.
Therefore, I'm marking this as "works for me".

Have a nice day,
Berny

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56106>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]