Created
November 2, 2014 03:29
-
-
Save lancep/51f310ce2520a0372b25 to your computer and use it in GitHub Desktop.
Find the file with the most { } pairs in it
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
find . -type f -name "*.m" | while read f; do echo -n "$f "; cat "$f" | tr -dc '{}'; echo; done | awk '{ print length($2), $1 }' | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment