Search code examples
unix

How to use grep command on zip files


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


Solution

  • 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.