• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

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?
0
luke_airig
Asked:
luke_airig
  • 5
  • 3
1 Solution
 
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
 
ahoffmannCommented:
If you have gzip/gunzip, you also should have zdiff:
      zdiff a.gz b.gz

0
 
ozoCommented:
which pipes a.gz to -, but uncompresses b.gz to a temp file

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now