Created
August 20, 2009 14:28
-
-
Save spraints/171093 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'zlib' | |
| print Zlib::GzipReader.new($<).read |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| cat > test.txt <<EOF | |
| hi | |
| this is a test. | |
| EOF | |
| gzip -c test.txt > test.gz | |
| if ruby guns_and_zips.rb < test.gz | diff test.txt - | |
| then | |
| echo 'OK!' | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment