Skip to content

Instantly share code, notes, and snippets.

@benosteen
Last active March 3, 2017 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benosteen/2519c6232b055e56235e1a51cbac51ed to your computer and use it in GitHub Desktop.
Save benosteen/2519c6232b055e56235e1a51cbac51ed to your computer and use it in GitHub Desktop.
for xmlfile in `find OCR -name *xml`
do
echo "Processing `basename $xmlfile`"
mkdir -p text/`dirname ${xmlfile#OCR/}`
xsltproc --output text/${xmlfile#OCR/}.txt alto2txt.xslt $xmlfile
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment