问题
I want to grep for today's date from zip file. How can do this?
I have a zip file called sen2616.z I want to get all the data for today's date 09.02.2014
回答1:
Please use zipgrep
.
zgrep
is for gz files, not for zip files.
回答2:
In my case zgrep
didn't work on a normal .zip
file. I had to use zipgrep
instead.
回答3:
You can use zgrep
to get what you want, with:
zgrep '09.02.2014' myfile.zip
See man zgrep
for more info.
来源:https://stackoverflow.com/questions/25624801/how-to-use-grep-command-on-zip-files