git shortlog | grep -e '^ ' | sed 's/[[:space:]]\+\(.*\)$/\1/' | awk '{lens[length($0)]++;} END {for (len in lens) {stars=""; for (i=0; i<lens[len]; i++) stars=stars "*"; print len, stars }}' | sort -n Prints a rough and ready histogram of the lengths of all the subject lines of all the commit messages in a repo.