gzipped/compressed files as input to

i want to comm or diff two files that are gzipped and i am pressed for space.  is there any way to 'gunzip -c' the files and pipe them directly to comm or diff?
luke_airigAsked:
Who is Participating?
 
ahoffmannConnect With a Mentor Commented:
If you have gzip/gunzip, you also should have zdiff:
      zdiff a.gz b.gz

0
 
ozoCommented:
You can pipe one of them to comm or diff as the filename -

piping two may be more difficult...
perhaps you could manage to pipe to /dev/pty...
 
 
0
 
ozoCommented:
which pipes a.gz to -, but uncompresses b.gz to a temp file

0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
ahoffmannCommented:
ozo, where did you find this information? I'm interested too :-)
0
 
ozoCommented:
cat `which zdiff`

Also, running it and seeing:
- /tmp/b differ: char n, line m
gives a clue
(if that's what ahoffmann is asking)
0
 
ahoffmannCommented:
It's so easy: just reading what's written :-))
Thanx ozo.

luke_airig, sorry but I think my answer doesn't solve your problem :-(
0
 
ozoCommented:
It solves half the problem.
Which may be enough...
(But surely there must be a utility somewhere
to connect two /dev/pipe devices together?)



0
 
ozoCommented:
It solves half the problem.
Which may be enough...
(But surely there must be a utility somewhere
to connect two /dev/pipe devices together?)



0
 
luke_airigAuthor Commented:
ahoffman and ozo,

zdiff is exactly what i needed.  thanks for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.