Blob Blame History Raw
#!/bin/sh
# Filter unicover output to keep only blocks with less than 10 missing glyphs
# (as fc-query does for lang coverage

sed 's=^\([^\:]*\):\( *\)\([0-9]\+\)/\([0-9]\+\)\( *\)(\([0-9.]\+\)%)$=\1|\3|\4|\6='\
  | awk -F '|' '($3-$2 > 0) && ($3-$2 < 10) { print $1 ": " $3-$2 }'