S
sopan.shewale
Hi,
I am not sure if this is the right group to ask this question - i am
sorry if this is not the right place.
Problem: Let us say we have file called "myfile.txt". The size of the
file is huge. The file is gziped - the gziped filename is
"myfile.txt.gz". I am interested to find the number of lines of
myfile.txt from myfile.txt.gz without gunziping it.
I know if it is allowed to gunzip then just use "gunzip -c
myfile.txt.gz | wc -l" this can give the number of lines.
My problem is time taken to gunzip is huge file is very large.
Is there any way to count the number of lines using Perl script/Any
other method - just to figure out number of "\n" chars hidden inside
the file-use something from the algorithm of gzip?
Appreciate your time efforts to read the problem and thank you so much
for investing time to read this problem.
Please help me with solution or pointers to read (already reading
http://www.gzip.org/algorithm.txt).
--sopan
I am not sure if this is the right group to ask this question - i am
sorry if this is not the right place.
Problem: Let us say we have file called "myfile.txt". The size of the
file is huge. The file is gziped - the gziped filename is
"myfile.txt.gz". I am interested to find the number of lines of
myfile.txt from myfile.txt.gz without gunziping it.
I know if it is allowed to gunzip then just use "gunzip -c
myfile.txt.gz | wc -l" this can give the number of lines.
My problem is time taken to gunzip is huge file is very large.
Is there any way to count the number of lines using Perl script/Any
other method - just to figure out number of "\n" chars hidden inside
the file-use something from the algorithm of gzip?
Appreciate your time efforts to read the problem and thank you so much
for investing time to read this problem.
Please help me with solution or pointers to read (already reading
http://www.gzip.org/algorithm.txt).
--sopan