【问题标题】:Run html2text using parallel while deleting the input在删除输入时使用并行运行 html2text
【发布时间】:2018-07-07 01:22:19
【问题描述】:

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

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

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

【问题讨论】:

    标签: python html linux terminal parallel-processing


    【解决方案1】:

    这样就可以了:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多