home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lang / awk / 20 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.2 KB  |  29 lines

  1. Newsgroups: alt.lang.awk
  2. Path: sparky!uunet!psgrain!m2xenix!edw
  3. From: edw@psg.com (Ed Wright)
  4. Subject: Re: tolower() function?
  5. Organization: Pacific Systems Group, Portland Oregon US
  6. Date: Sun, 24 Jan 1993 09:33:40 GMT
  7. Message-ID: <1993Jan24.093340.17437@psg.com>
  8. References: <EMCOOP.93Jan19111755@bcars148.bnr.ca> <C184vr.p5q@austin.ibm.com> <1993Jan22.012739.26965@chpc.utexas.edu>
  9. Lines: 18
  10.  
  11. In article <1993Jan22.012739.26965@chpc.utexas.edu> rshouman@chpc.utexas.edu (Radey Shouman) writes:
  12. >In article <C184vr.p5q@austin.ibm.com> tbates@austin.ibm.com (Tom Bates)
  13. >writes:
  14. >
  15. >>Quoting "The AWK Programming Language",
  16. >>
  17. >>    "The cleanest way to do case conversion in awk is with an array that
  18. >>maps each letter...it's better to use...tr"
  19. >>
  20. >>I often use tr for this very reason. For example:
  21. >>
  22. >>    echo "HeLlO, wOrLd!" | tr [:upper:] [:lower]
  23.  try                         | tr [A-Z] [a-z]
  24. -- 
  25.  REAL RADIOS             edw@m2xenix.psg.com            GLOW IN THE DARK
  26.         ^^^^^^^^^^^^^^^^^^^^^^^^<<^^>>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  27.     >>No Voice>>>>>> Amateur Radio   KA9AHQ @ 28.340  <<<<<<<No Vice<<
  28.   >>> Kshatriya Auscultating 9 Ailurophiles Hypothesizing Quodlibets <<<
  29.