count lines in a compressed file

Posted by benjamin button on Super User See other posts from Super User or by benjamin button
Published on 2010-04-27T07:37:14Z Indexed on 2010/04/27 21:43 UTC
Read the original article Hit count: 248

Filed under:
|

Hi,

if i have a .gz file on unix which has certain number of lines. How could i count the lines on unix without uncompressing it.

© Super User or respective owner

count lines in a compressed file

Posted by benjamin button on Stack Overflow See other posts from Stack Overflow or by benjamin button
Published on 2010-04-27T07:37:14Z Indexed on 2010/04/27 7:43 UTC
Read the original article Hit count: 248

Filed under:
|

Hi,

if i have a .gz file on unix which has certain number of lines. How could i count the lines on unix without uncompressing it.

© Stack Overflow or respective owner

Related posts about unix

Related posts about command-line