Mercurial > repo
view lib/karma @ 12425:4a1943672025 draft
<fizzie> slwd font//s|http://xen.firefly.nu/up/fonts/|https://firefly.nu/up/fonts/|
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 11 Oct 2021 23:28:47 +0100 |
parents | 9b8fbae1571a |
children |
line wrap: on
line source
#!/bin/sh count () { hg log -k '> karma' --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))