summaryrefslogtreecommitdiff
path: root/ocropuspgtxt.sh
blob: ed4b9f34fecbd9a945b5aa12e6abcbb56c0db042 (plain)
1
2
3
4
5
6
#!/bin/sh
usage="usage: $0 ocrdir
Adds pgname_ocropus.txt files for each page to an ocropus directory"
test $# -ne 1 && echo "$usage" && exit 1

for i in "$1"/????; do n=`basename "$i"`; cat "$i"/*txt > "$1/${n}_ocropus.txt"; done