Path: utzoo!attcan!uunet!beartrk!cjp From: cjp@beartrk.beartrack.com (CJ Pilzer) Newsgroups: comp.sys.ibm.pc Subject: Re: sorting multiple-line records Summary: AWK will process multi line records Message-ID: <419@beartrk.beartrack.com> Date: 7 Jul 90 04:04:08 GMT References: <1601@ole.UUCP> Distribution: na Organization: Bear Track Computer Co., Takoma Park, MD. Lines: 24 In article <1601@ole.UUCP>, ray@ole.UUCP (Ray Berry) writes: > > I am looking for a sort utility that can handle records which span > over a (variable) number of lines. I.e., one with a user-specifiable > record delimiter. Does anybody know of such a sort? The unix AWK program will process multiline records. It can use any delimiter you want. There are versions of this program which will run on dos. One comes from Mortice Kerns Systems, Inc. UUCP:uunet!watmath!mks!inquiry or Tel: 519-884-2251. They are in Canada. Another is Polytron Corp. 503-645-1150 in Beaverton, OR. I also think there is a PD or shareware version, but I don't know the name. I think that the Programmer's Shop and other mail order places may carry the programs. You can see how to use it in The AWK Programming Language, by Aho, Kernighan, & Weinberger. They are the authors of the language, hence AWK. Look at pages 82-88. -- cj