[clue] Unzipping zip archives with duplicates?

Sean LeBlanc seanleblanc at comcast.net
Tue Aug 28 11:05:29 MDT 2012


As for how they got in there - it's thanks to a certain vendor and how 
they export some data - they produce a zip file with dupes in there. 
Because it's legal I guess? Not necessarily a best practice, I would 
think, to do this just because a zip file supports this.

As far as what you're talking about - I'm not quite sure how I'd do this 
- it's non-deterministic, and to give you an idea of what I'm dealing 
with, there are 114 duplicates in the file, and for any given run, I'm 
sure the names would collide.

On 8/28/12 10:34 AM, Yaverot wrote:
> Thinking back to the old DOS PKzip...
>
> rename the file(s) within the zip before extracting
> or
> extract one file (that you aren't getting from the batch unzip) and unzip it to a different directory.
>
> I'm wondering how multiple files of the same name&path got into a zip file?
>
> Note: I have no idea what the command lines for any of my above suggestions looks like.
>
> --- seanleblanc at comcast.net wrote:
>
> From: Sean LeBlanc <seanleblanc at comcast.net>
> To: CLUE's mailing list <clue at cluedenver.org>
> Subject: [clue] Unzipping zip archives with duplicates?
> Date: Tue, 28 Aug 2012 10:21:32 -0600
>
> I'm trying to figure out how I might extract a certain zip file on the
> command line.
>
> Normally, this is a no-brainer, of course, but this one has duplicate
> names in there. Now, some GUI tools will rename dupes found (append .#
> on the end, for example) and keep right on trucking.
>
> It seems 7-zip command line on Windows anyway has a flag (-aou) that
> seems like it might do the right thing - but the port(s) (tried on
> Ubuntu and OS X) doesn't seem to have support for it.
>
> Any other ideas for how I might skin this cat?
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue
>
>
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue
>



More information about the clue mailing list