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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

zip command

Status
Not open for further replies.

buxtonicer1

Programmer
Sep 20, 2006
82
GB
Here is the situation. I have a directory called 848u and I want to zip it up. It has lots of subdirectories. But I want to zip it up but exclude a couple of subdirectories called 'data' (and everything in data) and DNYPS (everything in DNYPS) . I've tried the following below but not look so far. Any ideas ?


zip -r 848u 848u/* -x 848u/data/\* 848u/appserv/DNYPS\*
 
Also exclude lists are not an option as I only have read access to the box I'm trying to get at
 
This should work as long as there aren't thousands of files to be excluded:

[tt]zip -r 848u 848u -x `find 848u/data 848u/appserv/DNYPS`[/tt]

Annihilannic.
 
exclude lists are not an option as I only have read access
So, how do you expect to create a zip file ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top