Mercurial > repo
view paste/paste.12049 @ 2967:b5f514d70f67
<oerjan> learn cpressey has invented more esolangs than you can shake a stick at. Also he\'s older than the universe hth.
author | HackBot |
---|---|
date | Tue, 28 May 2013 21:31:54 +0000 |
parents | e925c0adf7ad |
children |
line wrap: on
line source
#!/bin/sh count () { hg log --template '{desc}\n' | egrep '<[^]]*> karma\'$1 | fgrep -vix "<$2> karma$1 $2" | cut -d' ' -f3 | fgrep -cix "$2" } plus=$(count + "$1") minus=$(count - "$1") echo $(($plus-$minus))