#!/usr/bin/env ruby # This code comes from http://ruby-it.org/pages/Leggere+File+Compressi # Check the page for copyright notice and explanations >> require 'zlib' => true >> Zlib::GzipReader.open('file.txt.gz') do |io| ?> puts io.readlines >> end ciao miao bau