2
I have a folder with a mix of zipped and unzipped log files which i want to search.
I can search the non-zipped with
grep -r "my-search-string" /path/to/folder
and search the zipped files with
find /path/to/folder -name "*.gz" -exec zcat "{}" + | grep "my-search-string"
Is there a one-liner i can use to search all the zipped and unzipped files in /path/to/folder
?
thanks, Max