How do I recursively grep through compressed archives?
19
votes
9
answers
25038
views
I'm trying to find out what modules [
use Test::Version
](http://search.cpan.org/dist/Test-Version/lib/Version.pm) in cpan. So I've used [minicpan
](http://search.cpan.org/dist/CPAN-Mini/bin/minicpan) to mirror it. My problem is that I need to iterate through the archives that are downloaded, and grep the files that are in the archives. Can anyone tell me how I might do this? preferably in a way that tells me which file in the archive and what line it's on.
*(note: they aren't all tarballs some are zip files)*
Asked by xenoterracide
(61203 rep)
May 25, 2011, 12:29 PM
Last activity: Mar 20, 2025, 11:10 AM
Last activity: Mar 20, 2025, 11:10 AM