Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- # zat :: Zlib `cat`
- require 'zlib'
- def print_inflated(f)
- puts Zlib::Inflate.inflate(f.read)
- end
- if ARGV.empty?
- print_inflated($stdin)
- else
- ARGV.each do |zile|
- print_inflated(File.new(zile))
- end
- end
Add Comment
Please, Sign In to add comment