Let\'s say I want to list all php files in a directory including sub-directories, I can run this in bash:
php
ls -l $(find. -name *.php -type f)
Here is another way, using du:
du
find . -name "*.php" -type f -print0 | du -c --files0-from=- | awk 'END{print $1}'