gnu-parallel - 如何将命令参数传递给 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 并行根本不工作
解决方案
推荐阅读
- python-3.x - 无法获得分数的 Entry 对象
- azure - 将 Azure-Data-Explorer 与 Azure-Data-Lake-Gen2 连接
- cordova - Phonegap 和 Cordova 版本
- java - 通过 java 执行 SQL 查询时出现“java.sql.SQLException: Invalid column index”错误
- angular - TypeError:this.service.x 不是函数
- c - 当替换字符串数组中的值时,我在使用“”而不是“”时得到一个数组
- java - Spring验证:类属性VS构造函数参数中验证注解的区别
- javascript - 为什么单击机器人框架测试中的下一个元素后 datepicker 输入字段的值会消失?
- python - 如何在python中以N为参数打印文件的前N行
- postgresql - 单个连接字符串中的多个服务器名称