- Simple CLI one-liner for line counts Fri, 29 Feb 2008 22:11:59 -0500
-
Here is a little tip about how to perform a quick line count recursively through your code.
c=0; for i in `find . -type f -name "*.php"`; do c=$(( $c + `wc -l $i | cut -d ' ' -f 1`)); echo $c; done; echo $c
THis example is specifically for searching out PHP scripts, however you can modify this however you like to fine what files you want.