Solved

gzipped/compressed files as input to

Posted on 1997-08-28
9
311 Views
Last Modified: 2010-04-21
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
Comment
Question by:luke_airig
  • 5
  • 3
9 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2006837
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
 
LVL 51

Accepted Solution

by:
ahoffmann earned 10 total points
ID: 2006838
If you have gzip/gunzip, you also should have zdiff:
      zdiff a.gz b.gz

0
 
LVL 84

Expert Comment

by:ozo
ID: 2006839
which pipes a.gz to -, but uncompresses b.gz to a temp file

0
Technology Partners: 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!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006840
ozo, where did you find this information? I'm interested too :-)
0
 
LVL 84

Expert Comment

by:ozo
ID: 2006841
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006842
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
 
LVL 84

Expert Comment

by:ozo
ID: 2006843
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
 
LVL 84

Expert Comment

by:ozo
ID: 2006844
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
 

Author Comment

by:luke_airig
ID: 2006845
ahoffman and ozo,

zdiff is exactly what i needed.  thanks for your help.
0

Featured Post

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unix, date minus 1, 2 or 3 days (last working day) 11 83
Unistall fileset without dependecies on AIX 3 71
dot directory in FreeBSD??? 4 90
unix example issues 18 106
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question