Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!sics.se!uplog.se!uplog.uplog.se!thomas From: thomas@uplog.se (Thomas Tornblom) Newsgroups: comp.unix.questions Subject: Re: Re^2: Converting to uppercase/lowercase in sed Message-ID: Date: 28 Aug 90 05:30:12 GMT References: <3766@umbc3.UMBC.EDU> <1990Aug16.232151.23436@iwarp.intel.com> <1990Aug17.220308.15418@cbnewse.att.com> <522@ncratl.Atlanta.NCR.COM> Sender: thomas@uplog.se (Thomas Tornblom) Organization: TeleLOGIC Uppsala AB Lines: 29 In-Reply-To: gedwards@ncratl.Atlanta.NCR.COM's message of 27 Aug 90 20:20:50 GMT In article <522@ncratl.Atlanta.NCR.COM> gedwards@ncratl.Atlanta.NCR.COM (Gordon Edwards) writes: Dan_Jacobson@ATT.COM writes: >merlyn@iwarp.intel.com (Randal Schwartz) writes: >>yeah, the not very well documented "y" command. >> y/a-z/A-Z/ > >bzzzzt. Minus 10 points! got to say: >y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ >-- >Dan_Jacobson@ATT.COM +1-708-979-6364 To convert lowercase to uppercase with sed I use s/[a-z]/[A-Z]/g Not with any sed I know of. I guess you don't mean to replace each lowercase letter by the string '[A-Z]'. Minus 10 pts! Thomas -- Real life: Thomas Tornblom Email: thomas@uplog.se Snail mail: TeleLOGIC Uppsala AB Phone: +46 18 189406 Box 1218 Fax: +46 18 132039 S - 751 42 Uppsala, Sweden