Gnuzip 压缩文件:
zgrep <.tar.gz or .gz compressed file>
例如
zgrep "load successful" today-log.tar.gz
还有 zegrep(扩展正则表达式 grep)和 fgrep(固定字符串 grep)可用
Linux如何在压缩文件中搜索字符串,而不解压缩它。
Bzip2 压缩文件:
bzgrep <.tar.bz2 or .bz2 compressed file>
例如
bzgrep "loaded" logs.tar.bz2
还有 bzegrep(扩展正则表达式 grep)和 bfgrep(固定字符串 grep)可用
日期:2020-06-02 22:17:04 来源:oir作者:oir