Count total number of lines in a project.

by Tyler Perroux on August 10, 2009

Just in case you are interested in seeing how much time you have really spent on a project, this little *nix command will look through all directories, and files in your current directory, and count up the number of lines. It will then spit out how many lines there are.

find . -type f -exec wc -l “{}” \; | awk ‘ { sum += $1 } END {print sum}’

  • Share/Bookmark

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Comment

Previous post:

Next post: