This question already has an answer here:
- Grepping through .gz log files 5 answers
I have a set of 100 log files, compressed using gzip. I need to find all lines matching a given expression. I'd use grep, but of course, that's a bit of a nightmare because I'll have to unzip all files, one by one, grep them and delete the unzipped version, because they wouldn't all fit on my sevrer if they were all unzipped.
Anyone has a little trick on how to get that done quickly?