home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:13448 comp.unix.programmer:5289 comp.unix.shell:4720 comp.unix.misc:4175
- Path: sparky!uunet!ogicse!uwm.edu!linac!att!cbnewsi!ft
- From: ft@cbnewsi.cb.att.com (frederick.d.true)
- Newsgroups: comp.unix.questions,comp.unix.programmer,comp.unix.shell,comp.unix.misc
- Subject: Decompress while merging?
- Keywords: merge compress
- Message-ID: <1992Nov15.231322.28100@cbnewsi.cb.att.com>
- Date: 15 Nov 92 23:13:22 GMT
- Article-I.D.: cbnewsi.1992Nov15.231322.28100
- Followup-To: ftrue@attmail.att.com
- Organization: AT&T
- Lines: 27
-
- Is anyone aware of an existing method to merge/sort compressed files
- given a sort key? In other words, say I have 10 large compressed
- files, sorted by a particular key (ie: position 5-10), and I need to
- merge them in sorted order into another compressed file. The files
- are too large to have all uncompressed on the system, so using regular
- sort is out of the question.
-
- What I need is some sort of utility ala 'sort -m' which will
- decompress and buffer input files while merging. Is there such a
- beast? Is there another obvious way of doing this that I'm neglecting?
- Perhaps a way to decompress several files to different file
- descriptors, and a way to merge files based on file descriptors? I
- realize that I could polyphase merge them two at a time, but I'd
- rather not. The files are very large and each merge stage would take
- hours.
-
- I'm just about to write my own merge routine, building in the compress/
- decompress routines as an option for each input file, but I thought I'd
- see what's out there before I started.
-
- Any suggestions would be appreciated,
-
- Please e-mail to: ftrue@attmail.att.com
-
- --
- Fred True
- AT&T
-