home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / cmspipl / 705 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.1 KB  |  28 lines

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