summaryrefslogtreecommitdiff
path: root/hocrtotxtdir.sh
blob: d627670fa1e6e97f10971c7cc3d698b474304ca7 (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"`; hocrtotxt "$i" > "$d/$b.txt"; done