Created
May 1, 2014 03:13
-
-
Save pqnga/7f96097f33b85b685d92 to your computer and use it in GitHub Desktop.
Explore all files in a directory and print out the file name and the number of lines in that file, sorted from large to small
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Explore all files in a directory and print out the file name and the number of lines in that file, sorted from large to small | |
# http://stackoverflow.com/questions/1358540/how-to-count-all-the-lines-of-code-in-a-directory-recursively | |
find . -name '*.m' | xargs wc -l | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment