Debian Codegraph @

_tools/pinyin-data/unihan/diff.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 set -euo pipefail
3 IFS=$'\n\t'
4
5 function mainscip-shell shell shell-project 0.0.0 main().() {
6 printfscip-shell system . . printf. '%-14s %-8s %-8s\n' '' 'parsed' 'Unihan'
7 for kind in 'kHanyuPinyin' 'kMandarin' 'kHanyuPinlu' 'kXHC1983'
8 do
9 unihanCount=$(less Unihan_Readings.txt |grepscip-shell system . . grep. -v '^#' |grepscip-shell system . . grep. -c "$kind")
10 parsedCount=$(less "$kind".txt | grepscip-shell system . . grep. -c "")
11 printfscip-shell system . . printf. '%-14s %-8s %-8s\n' "$kind" "$parsedCount" "$unihanCount"
12 done
13 }
14 mainscip-shell shell shell-project 0.0.0 main().