Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!orc!inews!iwarp.intel.com!news From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.questions Subject: Re: Re^2: Converting to uppercase/lowercase in sed Message-ID: <1990Aug28.004949.3340@iwarp.intel.com> Date: 28 Aug 90 00:49:49 GMT References: <3766@umbc3.UMBC.EDU> <1990Aug16.232151.23436@iwarp.intel.com> <1990Aug17.220308.15418@cbnewse.att.com> <522@ncratl.Atlanta.NCR.COM> Sender: news@iwarp.intel.com Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Beaverton, Oregon, USA Lines: 25 In-Reply-To: gedwards@ncratl.Atlanta.NCR.COM (Gordon Edwards) In article <522@ncratl.Atlanta.NCR.COM>, gedwards@ncratl (Gordon Edwards) writes: | To convert lowercase to uppercase with sed I use | | s/[a-z]/[A-Z]/g Hmm. $ echo 'Try this.' | sed s/[a-z]/[A-Z]/g T[A-Z][A-Z] [A-Z][A-Z][A-Z][A-Z]. $ What weird version of Unix are you using? (I'm not denying that it may work on *some* Unix-like OS, but it doesn't work on the One True Unix or BSD-derivatives or [blech] System V that I know of.) #ifdef NEWSADMIN_NOTE And, get your newsposter fixed. "Re^2" is broke. Phased out ages ago. #endif Just another UNIX hacker, -- /=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ | on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | | merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | \=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/