comparison lib/karma @ 12255:be6572e01f4c draft

<oerjan> t sled lib/karma//s/egrep.*>/egrep \'^<[^>]*>/
author HackEso <hackeso@esolangs.org>
date Fri, 06 Dec 2019 08:05:05 +0000
parents 616be78bd12e
children 9b8fbae1571a
comparison
equal deleted inserted replaced
12254:616be78bd12e 12255:be6572e01f4c
1 #!/bin/sh 1 #!/bin/sh
2 count () { 2 count () {
3 hg log --template '{desc}\n' | 3 hg log --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 }
9 plus=$(count + "$1") 9 plus=$(count + "$1")