Created
March 17, 2013 02:35
-
-
Save mark-rushakoff/5179307 to your computer and use it in GitHub Desktop.
Finding number of particular statements in a git project
This file contains 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
#!/usr/bin/sh | |
git grep -c rescue . | # or whatever word it is you want | |
tr ':' "\t" | # translate grep -c delimiter to tab for sort | |
sort -nr -k2 # sort Numeric, Reverse, "kolumn" 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment