【原创】Linux基础之gz文件相关操作

gz文件不需要解压即可进行相关操作

$ zcat test.log.gz
$ zmore test.log.gz
$ zless test.log.gz
$ zgrep '1.2.3.4' test.log.gz
$ egrep 'regex' test.log.gz
原文地址:https://www.cnblogs.com/barneywill/p/10559428.html