Mercurial > repo
view paste/paste.12049 @ 11290:3ac88fbad74b
<oerjan> le/rn bimonthly//The word "bimonthly" has at least two meanings, although this wisdom only gives about half of one. No matter which expert you follow, you\'re 50% likely to misinterpret it, or doubly so, depending on the phase of the moon.
author | HackBot |
---|---|
date | Sun, 31 Dec 2017 03:48:42 +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))