Created
May 21, 2020 14:46
-
-
Save hancengiz/acefac02c847a3ceae96bcdbab7b481f to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# hottest files in a git repo | |
ROW_LIMIT=20 | |
git log --name-status $* | \ | |
grep -E '^[A-Z]\s+' | \ | |
cut -c3-500 | \ | |
sort | \ | |
uniq -c | \ | |
grep -vE '^ {6}1 ' | \ | |
sort -n | \ | |
tail -n $ROW_LIMIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment