Performing grep operation in tar files without extracting

后端 未结 6 1376
梦谈多话
梦谈多话 2020-12-05 00:28

I have list of files which contain particular patterns, but those files have been tarred. Now I want to search for the pattern in the tar file, and to know which files conta

6条回答
  •  情话喂你
    2020-12-05 00:59

    Python's tarfile module along with Tarfile.extractfile() will allow you to inspect the tarball's contents without extracting it to disk.

提交回复
热议问题