Number of lines from a gzip file (AIX)

4.1k Views Asked by At

How to count the number of lines in a gzip file? wc -l can be used to get the number of lines from a normal file but what if it is a .gz file ??

1

There are 1 best solutions below

3
On

Try to do this, It may help You.

gzcat filename.ZIP|wc -l