Sha256: 33f370a4e2bfe6584a1d5d3244df3066e6fae5b4ddf4b94fa5ae4991bb722f5d
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rio-0.3.1 | ex/riocat |
rio-0.3.2 | ex/riocat |
rio-0.3.3 | ex/riocat |