Wednesday, July 20, 2011

How to extract multiple tar files at the same time?

# find . -iname \*bz2 -exec tar xjvf {} \;

Replace bz2 with the extension of your file. Also the tar options.

bz2 --> tar xjvf
gzip --> tar xzvf
xz --> tar xJvf