how to pipe contents of large tar.gz file to STDOUT?

后端 未结 1 1208
醉话见心
醉话见心 2021-01-01 19:32

I have a large.tar.gz file containing about 1 million files, out of which about 1/4 of them are html files, and I want to parse a few lines of each of the html

相关标签:
1条回答
  • 2021-01-01 19:52

    Use this with GNU tar to extract a tgz to stdout:

    tar -xOzf large.tar.gz --wildcards '*.html' | grep ...
    

    -O, --to-stdout: extract files to standard output

    0 讨论(0)
提交回复
热议问题