In PDFs directory:
- Replace additional
.in filenames with_:zmv '(*.*)(.*)' '${1//./_}$2 mkdir jpg && mkdir txtmogrify -format jpg -density 200 -quality 100 -alpha off -path jpg/ -verbose *.pdffor file in jpg/*.jpg; do tesseract $file ${file%%.*}; donemv jpg/*.txt txt/