Philip S Tellis <[EMAIL PROTECTED]> writes:

> On Fri, 19 Apr 2002, KDLinux wrote:
>
>>  I am writing a simple shell script to compare two archives, in
>> zip/tar/tgz format. I untar the two arhives in 2 separate folders in
>
> why do you need to untar?
> If all you want to do is compare the archive file, then just run diff or 
> cmp on the two files.  If you want to compare their contents, then
> tar tf filename will give you that.

md5sum will give you an even better idea of whether the two files
(tarballs or whatever) are identical or not.

          --srs

-- 
Suresh Ramasubramanian  <---->  mallet <at> efn dot org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to