Sha256: db7b80d0ea7e99bf10b82510b95391ea7314a2ee8a152f7bb5fb8bdb18716882
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
#!/usr/bin/env ruby require 'rio' # riogzip: reads from stdin, gzips and writes it to stdout # example use: # riocat < afile.txt >bfile.txt # # explanation: # # rio(?-) # rio(?-): a rio that will be connected to stdin or stdout depending how it is used # # rio(?-) # rio(?-): a rio that will be connected to stdin or stdout depending how it is used # # < # <: copy operator indicating rio on left is written to and the rio on the right is read from # rio(?-) < rio(?-) # # this could also be written # rio(?-) > rio(?-) # # this is similar but reads the entire file before writing #rio(?-).print!( rio(?-).slurp ) #rio(?-).print!( rio(?-).slurp) # DONT TO THIS: #io = rio(?-) #io.print!( io.slurp )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rio-0.3.4 | ex/riocat |
rio-0.3.7 | ex/riocat |