Skip to content

Instantly share code, notes, and snippets.

@sangheestyle
Created August 29, 2014 16:11
Show Gist options
  • Select an option

  • Save sangheestyle/87670fc82725481a7fe5 to your computer and use it in GitHub Desktop.

Select an option

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% ben.balter@github.com
21.43% jessica.lord@github.com
14.29% xhmikosr@users.sourceforge.net
7.14% aidan.feldman@gmail.com
$ 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% ben.balter@github.com
22.57% jessica.lord@github.com
6.53% xhmikosr@users.sourceforge.net
2.52% bravel@bnl.gov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment