
Designed by Freepik
You have a group of files and some of them are compressed with zip or gz and you want to search for a specific text in each of them. To do this, you can use the following command:
find -name [FILE_PATTERN] -print0 | xargs -0 zgrep "[TEXT_TO_FIND]"
Where:
[FILE_PATTERN] : is...