[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #20997] Patterns in files and directories
From: |
Eric Blake |
Subject: |
[bug #20997] Patterns in files and directories |
Date: |
Fri, 07 Sep 2007 15:05:41 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Mnenhy/0.7.5.666 |
Update of bug #20997 (project findutils):
Status: None => Works For Me
_______________________________________________________
Follow-up Comment #1:
Dual pattern matching is already possible. For example, this finds all
directories that match C??, followed by all files in those directories that
match R*:
$ find -wholename '*/C??/*' -name 'R*'
./CVS/Repository
./CVS/Root
./doc/CVS/Repository
./doc/CVS/Root
You may want to provide more details of the exact patterns you are trying to
find, so that we can help determine a working expression for that goal.
Likewise, dual file-type matching is already possible, as in this example
that finds both directories and regular files:
$ find CVS ( -type d -o -type f )
CVS
CVS/Entries
CVS/Repository
CVS/Root
CVS/Template
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20997>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/