zgrep zcat

義往昔 1年前 ⋅ 1103 阅读

很多日志,时间长了之后,会脚本自动压缩 .gzip 格式等

此时,在查找记录, 比较麻烦, grep cat 不管用了

zgrep 用法跟grep 一样 zfgrep

zgrep, zegrep, and zfgrep act like grep, egrep, and fgrep, respectively, but accept input files compressed with the compress(1) or gzip(1) compression utilities.

全部评论: 0

    我有话说: