You can untar a bunch of tar files using below method

Using For Loop:

for tar_file in *.tar
do
tar xvf $tar_file
done

Using Xargs:

ls *.tar | xargs -i tar xvf {}

(OR)

ls -l *.tar |awk '{print $9}' |xargs -i tar -xvf {}

 

Advertisements