Re: hundred files to tar and untar

2008-11-10 Thread chloe K
Thank you but I have hundred files in different folders and it may need 3 files in 100 files in this folder. I did put "need files" in file.txt and using tar zcvf file.tar.gz -T file.txt inside file.txt eg: /var/web/data/version/cc.html but don't know how to restore as restore directory is in d

Re: hundred files to tar and untar

2008-11-10 Thread Jerry McAllister
On Mon, Nov 10, 2008 at 08:10:36AM -0500, chloe K wrote: > Hi > > I have hundred files to tar > > How can I make tar the file but untar in different folder? > Just use cd. You can use cd in a script just like you would at the command line. cd /what/ever/the/source/directory/is

Re: hundred files to tar and untar

2008-11-10 Thread David Kelly
On Mon, Nov 10, 2008 at 08:10:36AM -0500, chloe K wrote: > Hi > > I have hundred files to tar > > How can I make tar the file but untar in different folder? > > eg: > > tar cvf html.tar /var/web/data/verion/cc.html > > untar html.tar /var/web/data/root/cc.html > >