home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!stanford.edu!bcm!convex!darwin.sura.net!paladin.american.edu!auvm!UMINN1.BITNET!IJIM
- Message-ID: <CMSPIP-L%92111120275520@VM.MARIST.EDU>
- Newsgroups: bit.listserv.cmspip-l
- Date: Wed, 11 Nov 1992 19:27:05 CST
- Sender: VM/SP CMS Pipelines Discussion List <CMSPIP-L@MARIST.BITNET>
- From: Jim Colten <IJIM@UMINN1.BITNET>
- Subject: Re: Need to sort records ignoring case using pipes
- In-Reply-To: Message of Wed, 11 Nov 1992 15:00:31 EST from <WHV@PSUVM.PSU.EDU>
- Lines: 16
-
- On Wed, 11 Nov 1992 15:00:31 EST Bill Verity said:
- >I need to sort records ignoring case. Xedit seems to handle this properly
- >if we have CASE MIXED IGNORE. Is there any other way to do it? Obviously I
- >need the case preserved coming out the other end. XLATE changes the records
- >permanently which is not acceptable.
-
- You can do something like the following:
-
- /*sort cols 11-15, ignore case*/
- 'PIPE',
- ' < input file a',
- '| spec 11-15 1 *-* next',
- '| xlate 1-5 upper',
- '| sort 1-5',
- '| spec 6-* 1',
- '| > output file s'
-