[arch-general] Counting Lines of Code

Gaurish Sharma contact at gaurishsharma.com
Sat Jun 19 18:23:11 EDT 2010


Hi,
I am trying to get a rough idea on total line of code in my php
project. Currently, I use this command.

$ ( find ./ -name '*.php' -print0 | xargs -0 cat ) | wc -l

But it empty lines/comments, hence the figure is huge. Any other Alternative?

Regards,
Gaurish Sharma
www.gaurishsharma.com


More information about the arch-general mailing list