Jumlins TechBlog

The coding hell and the daily IT of Niklas Jumlin

July 14th, 2009 by Dennis

So i was asked to tell how many lines of code a project was at so far..

After some brain bashing i came up with the following, there is proberbly better ways to do it.. but it seems to work pretty nice.

grep -R --include=*.php --include=*.js --include=*.css --include=*.htm* . * | wc -l

This counts the lines in all the text types i had used in that project.

Share on Facebook

Leave a Reply