python - 删除输入时使用并行运行 html2text

标签 python html linux terminal parallel-processing

我可以通过这段代码在 html2text 上使用并行

find . -type f -name \*html > FLIST
parallel --a FLIST -j 1000 'html2text {} > {.}.txt'

现在,如何在转换后删除每个 .html 输入文件。

最佳答案

这样做会:

find . -type f -name \*html > FLIST
parallel --a FLIST -j 1000 'html2text {} > {.}.txt; rm {}'

关于python - 删除输入时使用并行运行 html2text,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51219201/

相关文章:

linux - 输出是否有字符限制

python - Groupby和转置 Pandas , python

python - 自动化测试平台,Matlab 还是 Python?

c# - 如何在代码中设置指向文本框的超链接。 - 与其他 HTML 标签

html - ubuntu 中的 css @font-face 不起作用

javascript - Uncaught ReferenceError : calculateTotal is not defined

python - Flask - SQLAlchemy - 清除表以及多对多链接表

python - Python 中的动态连接字符串创建

linux - mod_jk如何处理节点故障

linux - 修改pg_hba.conf文件以允许我访问