1
1
i need to decompress .bz2 files inside a .tar archive (two step decompression)
For example:
requested_files_1.tar
has multiple .bz2 files inside.
How can I extract them with a single command in linux. I have tried this but it does n't work.
tar -xvf requested_files_1.tar | bzip2 -d
This is the perfect and most efficient piece of code. It worked flawlessly. it was even better when I put a for loop inside the parenthesis and made it to run for all the tar files in that directory. thanks again.