Compare contents of Zip files for changes.

  • Follow


Is there a simple way or trick to compare contents of Zip files for any
changes. A diff on 2 zip files may show that they are different,  but
it would be nice to know which file(s) have changed between the two
archives.

Any thoughts ?

-Dexthor.

0
Reply gmolakal (9) 3/23/2006 5:34:57 PM

In article <1143135297.911684.41460@j33g2000cwa.googlegroups.com>,
 "Dexthor" <gmolakal@gmail.com> wrote:

> Is there a simple way or trick to compare contents of Zip files for any
> changes. A diff on 2 zip files may show that they are different,  but
> it would be nice to know which file(s) have changed between the two
> archives.
> 
> Any thoughts ?
> 
> -Dexthor.

I have a zdiff, zcat, zmore, znew, zgrep, and zcmp utilities on my MacOS 
X system.  They came with fink.  Goggling for these utilities shows 
several linux packages.

got port?

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...



0
Reply Michael 3/23/2006 6:48:43 PM


Dexthor <gmolakal@gmail.com> wrote:
> Is there a simple way or trick to compare contents of Zip files for any
> changes. A diff on 2 zip files may show that they are different,  but
> it would be nice to know which file(s) have changed between the two
> archives.

What about:

  $ unzip -l t1.zip > t1.list
  $ unzip -l t2.zip > t2.list
  $ diff t1.list t2.list

mp.
-- 
Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
0
Reply Martin 3/24/2006 11:00:28 AM

2 Replies
896 Views

(page loaded in 0.051 seconds)

Similiar Articles:













7/23/2012 1:44:30 AM


Reply: