Answer the question
In order to leave comments, you need to log in
Help with the team
Task: Get a list of files with a specific string.
Everything would be fine, but the files are gziped.
Currently stopped here:
find . -type f -regex '\.txt\.gz$' -exec sh -c 'gunzip -c "$1" | grep "Find me"' {} {} \;
Answer the question
In order to leave comments, you need to log in
Something like this?
find . -type f -name "*.txt.gz" -exec zgrep -H "Find me" {} \;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question