[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to compare a .gz and a txt file
From: |
Peng Yu |
Subject: |
Re: How to compare a .gz and a txt file |
Date: |
Wed, 19 May 2010 04:15:20 -0500 |
On Wed, May 19, 2010 at 4:10 AM, John Cowan <address@hidden> wrote:
> Peng Yu scripsit:
>
>> Suppose I have a file xxx.txt.gz and a file xxx.txt, I'm wondering how
>> to compare the content inside xxx.txt.gz with xxx.txt without first
>> explicitly gunzip xxx.txt.gz (I want to avoid creating a temp file
>> because both xxx.txt.gz and xxx.txt are huge). Is there just one
>> command allowing me to compare xxx.txt.gz and xxx.txt?
>
> This isn't the right mailing list to ask, but
Thank you! One additional question. If I want to compare the contents
of two gz files without creating temp files, is it possible?
> gunzip <xxx.txt.gz | diff - xxx.txt should do the job.
Why this is not the right mailing list to ask? I thought this mailing
list is for diff, right?
http://www.gnu.org/software/diffutils/
--
Regards,
Peng