Skip to main content
1 of 2
Ramon
  • 97
  • 1
  • 3

Python3 oneliner:

python3 -c "import zlib,sys; sys.stdout.buffer.write(zlib.decompress(sys.stdin.buffer.read()))" < infile > outfile

This way the contents is handled as binary data, avoiding conversion to/from unicode.

Ramon
  • 97
  • 1
  • 3