#/bin/sh -xe . ${HOME}/.bin/_config needs tesseract-- tesseract-deu-- tesseract-eng-- ocrmypdf-- cd ${PIMDIR}/documents/_incoming find . -type f -maxdepth 1 -mindepth 1 -name "*.pdf" | xargs -P4 -n1 -t -r -I{} ocrmypdf -l deu $* "{}" "{}"