You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
421 B
15 lines
421 B
4 years ago
|
#!/usr/bin/env bash
|
||
|
set -euo pipefail
|
||
|
IFS=$'\n\t'
|
||
|
|
||
|
function main() {
|
||
|
printf '%-14s %-8s %-8s\n' '' 'parsed' 'Unihan'
|
||
|
for kind in 'kHanyuPinyin' 'kMandarin' 'kHanyuPinlu' 'kXHC1983'
|
||
|
do
|
||
|
unihanCount=$(less Unihan_Readings.txt |grep -v '^#' |grep -c "$kind")
|
||
|
parsedCount=$(less "$kind".txt | grep -c "")
|
||
|
printf '%-14s %-8s %-8s\n' "$kind" "$parsedCount" "$unihanCount"
|
||
|
done
|
||
|
}
|
||
|
main
|