Sha256: fbd310b3e8b4d0ad3faff85a8f36860ca26bae3ffd7bed851f77ab9270bded38
Contents?: true
Size: 892 Bytes
Versions: 5
Compression:
Stored size: 892 Bytes
Contents
#!/usr/bin/env ruby require 'rio' # riogunzip: reads from stdin, gzips and writes it to stdout # example use: # riogunzip < afile.txt.gz # # explanation: # # rio(?-).gzip # rio(?-): a rio that will be connected to stdin or stdout depending how it is used # .gzip: filter the input or output through Zlib:Gzip[Reader or Writer] # # rio(?-) # rio(?-): a rio that will be connected to stdin or stdout depending how it is used # # < # rio copy operator indicating the direction of data # pointed in this direction the rio on the right is read from and the one on the left is # written. (or stdin and stdout respectively) # rio(?-).gzip > rio(?-) # could be written this way # rio(?-) < rio(?-).gzip # # this is similar, but reads the entire file in before writing it out # rio(?-).print!( rio(?-).gzip.contents ) # #rio(?-).gzip.each_record do |rec| # rio(?-).print(rec) #end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
wishdev-rio-0.4.3.1 | ex/riogunzip |
rio-0.3.9 | ex/riogunzip |
rio-0.4.1 | ex/riogunzip |
rio-0.4.2 | ex/riogunzip |
rio-0.4.0 | ex/riogunzip |