首页 > 解决方案 > 如何将命令参数传递给 gnu 并行?

问题描述

按照这些说明[0],我需要附加l -deu参数(语言标志)。我尝试将它引用附加到下面的命令ocrmypdf中。它失败了(output.pdf 丢失)。

parallel --tag -j 2 ocrmypdf '-l deu' '{}' 'output/{}' ::: *.pdf

原始命令可以轻松运行:

parallel --tag -j 2 ocrmypdf '{}' 'output/{}' ::: *.pdf

查看其他答案,例如 [1] 没有帮助

[0] https://ocrmypdf.readthedocs.io/en/latest/batch.html

[1] GNU 并行根本不工作

标签: gnu-parallel

解决方案


推荐阅读