comparison lib/karma @ 12407:9b8fbae1571a draft

<oerjan> sled ../lib/karma//3s/log/log -k \'> karma\' /
author HackEso <hackeso@esolangs.org>
date Fri, 18 Jun 2021 00:57:28 +0100
parents be6572e01f4c
children
comparison
equal deleted inserted replaced
12406:ae9ff8279b2d 12407:9b8fbae1571a
1 #!/bin/sh 1 #!/bin/sh
2 count () { 2 count () {
3 hg log --template '{desc}\n' | 3 hg log -k '> karma' --template '{desc}\n' |
4 egrep '^<[^>]*> karma\'$1 | 4 egrep '^<[^>]*> karma\'$1 |
5 fgrep -vix "<$2> karma$1 $2" | 5 fgrep -vix "<$2> karma$1 $2" |
6 cut -d' ' -f3 | 6 cut -d' ' -f3 |
7 fgrep -cix "$2" 7 fgrep -cix "$2"
8 } 8 }