Unix Shell - How to tell zip to ignore some sub-directories

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > October 2006 > How to tell zip to ignore some sub-directories





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to tell zip to ignore some sub-directories
zzapper@gmail.com

2006-10-25, 1:27 pm

Hi
How to tell zip to ignore some sub-directories.?
I know you can tell zip to ignore say \*.o

I think I've sussed it (ignore all sub-directories "images")

zip -r all.zip www.blahblah.co.uk -x \*images\*

Any thing better or is that OK?

--
zzapper
Success for Techies
http://SuccessTheory.com/tips/ vim, zsh & success tips

zzapper@gmail.com

2006-10-25, 1:27 pm


zzapper@gmail.com wrote:
> Hi
> How to tell zip to ignore some sub-directories.?
> I know you can tell zip to ignore say \*.o
>
> I think I've sussed it (ignore all sub-directories "images")
>
> zip -r all.zip www.blahblah.co.uk -x \*images\*
>

zip -r all.zip www.blahblah.co.uk -x \*/images/\*

Thats a bit more precise

zzapper

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com