Count Lines Recoursive

From Flo's Knowledge in a Nutshell

Jump to: navigation, search

For example find all class/inc/php files under /home/xxx/


time wc -l `find /home/xxx/ -regextype posix-egrep -regex ".*\.(class|inc|php)" -print` | tail -1 | awk '{print $1}'
Personal tools