summaryrefslogtreecommitdiff
path: root/hocrtotxtdir.sh
blob: 20c45a5d29a6ec45d9ab346f7123d1b4c12f50c8 (plain)
1
2
3
4
5
#!/bin/sh
usage="usage: $0 dirname"
test $# -ne 1 && echo "$usage" && exit 1

for i in "$1"/*hocr; do b=`basename "$i" .hocr`; d=`dirname "$i"`; ~/rescribe/2018-natphil/src/go/bin/hocrtotxt "$i" > "$d/$b.txt"; done