Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to grep a bz2 file that is further under a zip folder - Ex: I have a work.zip folder inside which i got a couple of XXX.bz2 files which have a pattern i am searching for. I want to avoid unzipping the parent folder, is there a way?
zip -sf work.zipwill give you that, but if you want to search for contents, you're going to have to unzip the archiveunzip -p archive.zip | bzgrep 'regex'?