Table of Contents

count number of lines in a txz file

xz -cd foo.txz | wc -l
for i in *.txz; do echo $i; xz -cd $i | wc; done

file extensions

sample commands

tar cJvf foo.txz foo

convert tgz to txz

cat foo.tgz | gzip -cd | xz > foo.txz

To do the other way around

cat foo.txz | xz -cd | gzip > foo.tgz

Ref:- http://lowfatdaemon.blogspot.com/2012/01/how-to-repackage-txz-to-tgz-slackware.html

tags | change compression algorithm of a tar archive