💻 Software
Unix 'grep' for a string within all gzip files in all subdirectories
Fresh5 days ago
Mar 15, 202627833 viewsConfidence Score0%
0%
Problem
How do I grep for a string recursively through all files in all directories and subdirectories?
Error Output
.gz
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Unix 'grep' for a string within all gzip files in all subdirectories
Low Risk
@Steve Weet is almost there. The use of /dev/null as an additional argument is a nice way to force the filename to be shown (I'll remember that, thanks Steve) but it still runs the exec for every file found -- a huge overhead. You want to run zgrep …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix