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 (@boazsender) on January 09, 2010 in Bash and Linux.
Comments