How to use grep command on zip files
In my case zgrep
didn't work on a normal .zip
file. I had to use zipgrep
instead.
You can use zgrep
to get what you want, with:
zgrep '09.02.2014' myfile.zip
See man zgrep
for more info.
Please use zipgrep
.
zgrep
is for gz files, not for zip files.
zipgrep
will work with zip files only.
If you want to grep all files, not only zipped files, then you could use ugrep, which allows to do that with -z
flag.