Categorized | News

How many lines of code is your project?

Posted on 02 October 2002 by Demian Turner

If your PHP project is hosted on a *nix box and you have ssh/telnet access to your account, the following commandline will return the total number of lines of code that exist in the current path* (in this case, for all files with the php extension:

find . -name \"*.php\" | xargs cat | wc -l

* cd into the root directory of your project before executing this 😉

Bookmark and Share

Leave a Reply



Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists



PHPkitchen recommends you also check out the following sites :

Accounting for Small Businesses

FreeAgent sign-up