HI

i am given ever day a list of files  which i wget  within a parent folder .

my  team gives me    a structure where theses files are located

================
cat /home/upload_files1.txt
download the files form wget http://localserver/website1  and upload on
http://prodserver/weebsite1

index.php
dualfilder/dual.templ  dual_2.templ
go/go.php
go/numbers/123.php
data/data.php
===============


using the above data given to me  i check whether the files exist  and if
they do i download them

wget http://localserver/website1/index.php
wget http://localserver/website1/dualfilder/dual.templ
wget http://localserver/website1/dualfilder/dual_2.templ
wget http://localserver/website1/go/go.php
wget http://localserver/website1/go/numbers/123.php
wget http://localserver/website1/data/data.php

and its downloaded in the   /temp/  dir :

ls

index.php 123.php  dual.templ  dual_2.templ  go.php data.txt

i need to create a tar of this in the same given format

index.php
dualfilder/dual.templ  dual_2.templ
go/go.php
go/numbers/123.php
data/data.php


i cant seem to come up with a a logic on how to get this done .. can some
one help me kick start  a idea on how to preceded .


Thanks a lot for all your help


-- 
Regards
Agnello D'souza

Reply via email to