+ -
当前位置:首页 → 问答吧 → 在shell下,想显示gz文件第一行,能在不解压的情况下实现吗

在shell下,想显示gz文件第一行,能在不解压的情况下实现吗

时间:2011-03-01

来源:互联网

如题

作者: kelehaier   发布时间: 2011-03-01

回复 kelehaier


    zcat

作者: wtuter   发布时间: 2011-03-01

这次也学习了

作者: chenbin200818   发布时间: 2011-03-01

如无zcat
gzip 有-c参数
gzip -d -c xxx.gz | ...


QUOTE:
      -c --stdout --to-stdout
              Write output on standard output; keep original files  unchanged.
              If  there  are  several  input  files,  the output consists of a
              sequence of independently compressed members. To  obtain  better
              compression,  concatenate  all  input  files  before compressing
              them.

作者: ywlscpl   发布时间: 2011-03-01

热门下载

更多