Sha256: 055a51ef28974ef7ccb6362357ecf050fa09f6b440c05c818ac65ba0c09f2858

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 Bytes

Contents

#!/usr/bin/env ruby
require 'rio'
# riogzip: reads from stdin, gzips and writes it to stdout
# example use:
#   riogzip < afile.txt > 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

rio(?-).gzip < rio(?-)

# 
# could also be written:
# rio(?-) > rio(?-).gzip
# 

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rio-0.3.4 ex/riogzip
rio-0.3.7 ex/riogzip