Tar to the extract rescue…

Extracting files/folders with tar

for thefile in /var/mnt/backups/200612*prj.tar.gz ; do echo $thefile; tar –file=$thefile –extract var/share/prj/myFolder/myFiles/somethingelse ; done


TAR:

–create

-c
Create a new tar archive.
–list

-t
List the contents of an archive.
–extract

-x
Extract one or more members from an archive.
Advertisements

~ by nambabwe on 2007/05/21.

 
%d bloggers like this: