Any help? I'm searching in Zlib::GzipReader class but I can't undestand
how I can use with ARGF.
Something like this
ruby -rzlib -e 'reader = Zlib::GzipReader.new(ARGF);reader.each_line
do |x| puts x end' xxx.gz
I discovered however that
Zlib::GzipReader.new(ARGF)
seems to ignore all but the first file in the argument list - unless I
did something stupid - that complicates matters slightly, you still
can do things like
ARGV.each do
| filename |
Zlib::GeipReader.open( filename) do
|gz|
gz.each_line ....
...
end
end
of course but this behavior surprises me a little bit, maybe you
should mine the Zlib doc for this.
Robert