help with zip files and file sizes
Hi,
I have 2 versions of a zip file(same archive, but with updates.).
I need to compare the 2 versions. I adopted the following approach.
The files are v1.zip and v2.zip.
1) extract to /tmp/v1 and /tmp/v2
2) Get the list of files in /tmp/v1 and store to [at] files_v1
3) Get the list of files in /tmp/v2 and store to [at] files_v2
4) Using List::Compare, I got the files added/removed.
But I need to compare the sizes of files that are common to both
archives. How can I do that ? Thanks
--
Thank you
Balachandran Sivakumar
Arise Awake and stop not till the goal is reached.
Mail: benignbala [at] gmail.com
Blog: http://benignbala.wordpress.com/
--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Re: help with zip files and file sizes
--20cf3054a2f702ddb9049b337d9a
Content-Type: text/plain; charset=UTF-8
You should probably use a Zip parser -
http://search.cpan.org/search?mode=module&query=Archive%3A%3 AZip
~Parag
On Mon, Jan 31, 2011 at 11:15 PM, Balachandran Sivakumar <
benignbala [at] gmail.com> wrote:
> Hi,
>
> I have 2 versions of a zip file(same archive, but with updates.).
> I need to compare the 2 versions. I adopted the following approach.
> The files are v1.zip and v2.zip.
>
> 1) extract to /tmp/v1 and /tmp/v2
> 2) Get the list of files in /tmp/v1 and store to [at] files_v1
> 3) Get the list of files in /tmp/v2 and store to [at] files_v2
> 4) Using List::Compare, I got the files added/removed.
>
> But I need to compare the sizes of files that are common to both
> archives. How can I do that ? Thanks
>
> --
> Thank you
> Balachandran Sivakumar
>
> Arise Awake and stop not till the goal is reached.
>
> Mail: benignbala [at] gmail.com
> Blog: http://benignbala.wordpress.com/
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
> For additional commands, e-mail: beginners-help [at] perl.org
> http://learn.perl.org/
>
>
>
--20cf3054a2f702ddb9049b337d9a--