Skip To Main Content

Code Repository Analysis

Posted by Boaz Sender

Jan 09 2010

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
Posted by
Boaz Sender
on January 9th, 2010

Comments

We moved off of Disqus for data privacy and consent concerns, and are currently searching for a new commenting tool.

Contact Us

We'd love to hear from you. Get in touch!