Quickly convert gzip to bzip2
Ever wanted to convert from one compression scheme to another? The long way to do it is to uncompress the original file and delete it, compress the files to the second compression scheme and then delete the intermediate files. This is very time and space inefficient.
To quickly convert a gzip file to bzip2, use the following command:
gunzip < file.gz | bzip2 > file.bz2
You can also use this solution for other types of compression, such as zip. Hope you find this trick useful!