#Shell script which takes a file generated by "svn log > svn.log" and counts how many 
#commits were made each month.  Not particularly designed to be readable.
grep r[0-9][0-9]* svn.log | ruby -e 'require "rubygems"; require "active_support"; c = {}; STDIN.readlines.map {|k| d = Date.parse(k.split(" | ")[2]); s = d.beginning_of_month; c[s] ||= 0; c[s] += 1}; END {c.to_a.sort {|a,b| a[0] <=> b[0]}.each {|e| puts "#{e[0].year}-#{e[0].month} : #{e[1]}"}}'