Skip to content

Instantly share code, notes, and snippets.

@rghose
rghose / gitstat.sh
Created April 2, 2014 13:49
Git commit statistics
#!/bin/bash
git log | grep Author | awk -F: '{count[$2]++;} END {for (c in count) { print count[c], c; } }' | sort -n
#!/bin/sh
set -e
# Get a list of groups a user is a member of on one line, space-seperated
# Single-quote group names with spaces, otherwise print the rest
SPACE_CHAR='-'
TMP=`mktemp`
hostname=""
baseDN=""