Re: diff on .gz and .bz2 files

Cyrus Kriticos <[email protected]> Wed, 01 Sep 2010 23:41:11 +0200
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>

Peng Yu wrote:
> It seems that diff can not do comparison on the decompressed files in
> .gz and .bz2 files. I could first decompress the .gz and .bz2 file and
> then do the comparison. But it would be convenient to be able to
> directly compare without explicitly decompressing any files. Could
> somebody add this feature to diff?

diff <(gunzip -c file1.gz) <(bunzip2 -c file2.bz2)

-- 
  GrÌße  |  NDR-Beitrag ueber MCR Geldschrank Vertriebsgesellschaft Berlin
  Cyrus  |  http://www.lachschon.de/item/64671-kuchenblechmafia/