From af742229e7d360955420ba9691e0c905a2a36e75 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sun, 19 Jun 2022 00:41:58 -0700 Subject: [PATCH] docs: fix sentence fragment in batch page Closes #980 [ci skip] --- docs/batch.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/batch.rst b/docs/batch.rst index 5d9cf188..9003f7b1 100644 --- a/docs/batch.rst +++ b/docs/batch.rst @@ -36,18 +36,18 @@ Directory trees =============== This will walk through a directory tree and run OCR on all files in -place, printing the output in a way that makes +place, and printing each filename in between runs: .. code-block:: bash - find . -printf '%p' -name '*.pdf' -exec ocrmypdf '{}' '{}' \; + find . -printf '%p\n' -name '*.pdf' -exec ocrmypdf '{}' '{}' \; Alternatively, with a docker container (mounts a volume to the container where the PDFs are stored): .. code-block:: bash - find . -printf '%p' -name '*.pdf' -exec docker run --rm -v : jbarlow83/ocrmypdf '/{}' '/{}' \; + find . -printf '%p\n' -name '*.pdf' -exec docker run --rm -v : jbarlow83/ocrmypdf '/{}' '/{}' \; This only runs one ``ocrmypdf`` process at a time. This variation uses ``find`` to create a directory list and ``parallel`` to parallelize runs