Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

info-zip zip command

Status
Not open for further replies.

specv

Programmer
Aug 8, 2001
42
CA
Hi
I use zip 2.1 (info-zip). I have a list file I want to zip (list.txt) :

/dfs/projects/pubachat/DDP/DEARJOHN/*.mwp
/dfs/projects/pubachat/DDP/MASTER/*.*
/dfs/projects/pubachat/lettre/*.*
/dfs/projects/pubachat/RFI/*.*
/dfs/projects/pubachat/supplier/*.lwp
/dfs/projects/pubachat/supplier/*.mwp
/dfs/projects/pubachat/Torolab2/*.*

I try : zip -r myZipFile . -i@list.txt
I have no error but it look like to loop, I stop command with ctrl-c.

Have an idea?

Thanks
Phil
 
I try to read a line in the file and zip the patern read. But, the first time nothing is read :


while read -- line
do
zip -r test.zip $1
done < /dfs/projects/pubachat/list.txt


How can I read the first lign before the do while?

Philippe
 
Phil,

From which directory are you running the command zip -r myZipFile . -i@list.txt?

zip will only include the files in the current directory (the directory you are in when you run the aip command) and the current directory's subdirectories. Try running the command from the /dfs/projects/pubachat directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top