view zlibcat @ 542:baf75d5ee50d

Shift+group to add to current selection.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 28 Nov 2009 10:11:57 +0000
parents 1da14b3d8773
children
line wrap: on
line source

#!/usr/bin/python

import zlib

def main(args):
    filenames = args[1:]

    try:
        for name in filenames:
            print zlib.decompress(open(name).read())
    except IOError, e:
        if e.errno != 32:
            raise

if __name__ == "__main__":
    import sys
    sys.exit(main(sys.argv))