Re: grep fn.1.gz

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mike,

Use zcat (or, if that fails, gzcat) as in
 zcat fn.1.gz|less
or
 zcat fn.1,gz|egrep pattern

Of course, if you're already using
 gunzip -c fn.1.gz|less
the above won't save you much.

From:
"Mike Vanecek" <rh_list@xxxxxxxxxxxxx>

Dumb question time ... One can do a less fn.1.gz directly. I would like to be
able to grep or egrep pattern fn.1.gz in the same manner. Does an easy way
exist to do that? My approach of using gunzip seems rather awkward and I just
wondered if a easier way existed?

-- Peter B. West <http://www.powerup.com.au/~pbwest/resume.html>


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux