Code Repository Analysis

Ever wonder how many files or lines of code are sitting in your project? Hop on the command line and run the following find commands in your bash


Find the number of files in the current directory (runs recursively down into all subdirectories):

find . | wc -l

Find how many lines of code are in the current directory (runs recursively down into all subdirectories):

find . -name '*' | xargs wc -l

This entry was posted by Boaz Sender (@boazsender) on January 09, 2010 in Bash and Linux.

Comments

Author

This entry was posted by Boaz Sender (@boazsender) on January 09, 2010 in Bash and Linux.

Recent posts from this author

Related on the Bocoup Blog

Advertisement

Twitter

Google+