如何对 zip 文件使用 grep 命令 [英] How to use grep command on zip files
本文介绍了如何对 zip 文件使用 grep 命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从 zip 文件 grep 获取今天的日期.怎么能做到这一点?
I want to grep for today's date from zip file. How can do this?
我有一个名为 sen2616.z 的 zip 文件我想获取今天日期 09.02.2014 的所有数据
I have a zip file called sen2616.z I want to get all the data for today's date 09.02.2014
推荐答案
zipgrep
仅适用于 zip 文件.如果您想 grep 所有文件,而不仅仅是压缩文件,那么您可以使用 ugrep,它允许使用 -z
标志做到这一点.
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.
这篇关于如何对 zip 文件使用 grep 命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文