How to use grep command on zip files

我只是一个虾纸丫 提交于 2020-01-23 04:19:09

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!