How to compress from pipe (recompress gzip)?

CoSoCo
2013-02-09
2013-05-30
  • CoSoCo

    CoSoCo - 2013-02-09

    I have a gzip file and want to recompress it with xz
    I tried the following:
    gzip -c -d file.gz.aa | xz -k -7
    gzip -c -d file.gz.aa | xz -k -7 -
    gzip -c -d file.gz.aa | xz -k -7 - file.xz.aa

    I always get: "Compressed data cannot be written to a terminal"

    How can I manage that?

     
  • Lasse Collin

    Lasse Collin - 2013-02-12

    gzip -cd file.gz | xz -7 > file.xz

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks