Skip to content

Instantly share code, notes, and snippets.

@sangheestyle
Created August 29, 2014 16:11
Show Gist options
  • Save sangheestyle/87670fc82725481a7fe5 to your computer and use it in GitHub Desktop.
Save sangheestyle/87670fc82725481a7fe5 to your computer and use it in GitHub Desktop.
print with percent
$ git log --grep="fix" --no-merges --format="%ae" | awk '{a[$0]++} END{for (i in a) if (a[i]>1) printf "%5.2f%%\t%s\n", 100*a[i]/NR, i}'| sort -nr
50.00% [email protected]
21.43% [email protected]
14.29% [email protected]
7.14% [email protected]
$ git log --no-merges --format="%ae" | awk '{a[$0]++} END{for (i in a) if (a[i]>1) printf "%5.2f%%\t%s\n", 100*a[i]/NR, i}'| sort -nr
40.78% [email protected]
22.57% [email protected]
6.53% [email protected]
2.52% [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment