note 29723 added to function.readdir

From: Date: Sun, 23 Feb 2003 05:44:43 +0000
Subject: note 29723 added to function.readdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-44369@lists.php.net to get a copy of this message
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) -- http://www.php.net/manual/en/function.readdir.php http://master.php.net/manage/user-notes.php?action=edit+29723 http://master.php.net/manage/user-notes.php?action=delete+29723 http://master.php.net/manage/user-notes.php?action=reject+29723

« previous php.notes (#44369) next »