note 29723 deleted from function.readdir by didou
| From: | didou@php.net | Date: | Thu, 12 Jun 2003 17:24:07 +0000 |
| Subject: | note 29723 deleted from function.readdir by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50244@lists.php.net to get a copy of this message | ||
Note Submitter: marcio@b1n.org
----
To the guy using grep to filter find output:
I think you should use this instead:
find ... -name '*pattern_here*'
Example:
find ~/sound -depth -type f -name '*\.[Oo][Gg][Gg]' -or -name '*\.[Mm][Pp]3'
-print
Would do the same as:
find ~/sound -depth -type f | grep -E '\.([Oo][Gg]{2}|[Mm][Pp]3)$'
You can use -iname (insensitive) but it is not available in all systems. So, RTFM (man find) :)
See ya
---
Marcio Ribeiro (marcio@b1n.org)