Friday, 15 January 2010

linux - how to convert filename.bz2.gz file to filename.gz -



linux - how to convert filename.bz2.gz file to filename.gz -

i have bunch of files filename.bz2.gz want convert filename.gz.

any help ?

thanks

having filename *.bz2.gz assume file had been created using next order of compressions:

echo test | bzip2 | gzip -f > file.bz2.gz

meaning gzipped bzip2 file (for whatever reason). if assumption right can alter it's compression gzip-only, using next commands:

gunzip < file.bz2.gz | bunzip2 | gzip > file.gz

linux gz

No comments:

Post a Comment