Recursive Line Count On Linux

email-addthis printer-addthis favorites-addthis facebook-addthis digg-addthis | Share

22 May 2008 11:32:33
Category: GNU/Linux

Ever find you self wondering how many lines in your code base. Count them with this handy command ...

wc -l `find ./ -name "*.php"`
Gives per file and total file line count at the end. Nice eh? Doesn't exclude comments.

FYI Goop Gallery 3 has 3899 lines of code.

Cheers!