Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!oliveb!mipos3!omepd!merlyn From: merlyn@iwarp.intel.com (Randal Schwartz) Newsgroups: comp.unix.questions Subject: Hey, read the original request (was Re: sed question: lower-to-upper case) Message-ID: <4834@omepd.UUCP> Date: 22 Aug 89 23:44:19 GMT References: <830003@mechp10.UUCP> <4776@omepd.UUCP> <455@puffin.uss.tek.com> Sender: news@omepd.UUCP Reply-To: merlyn@iwarp.intel.com (Randal Schwartz) Organization: Stonehenge; netaccess via Intel, Hillsboro, Oregon, USA Lines: 23 In-reply-to: richl@penguin.USS.TEK.COM (Rick Lindsley) In article <455@puffin.uss.tek.com>, richl@penguin (Rick Lindsley) writes: | In article <4776@omepd.UUCP> merlyn@iwarp.intel.com (Randal Schwartz) writes: | | But, get Perl. Then you can say something like: | | perl -pe 's|\w*z\w*|($& =~ y/a-z/A-Z/),$&|eg;' | | and do what you want in *one* line. | | Heck. If you're going to use another program, use the one made for just this | purpose and cut down on your typing even more. | | tr a-z A-Z | | Rick The original request was to uppercase only the words that contained the letter 'z'. Your tr command doesn't do that. -- /== Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ====\ | on contract to Intel, Hillsboro, Oregon, USA | | merlyn@iwarp.intel.com ...!uunet!iwarp.intel.com!merlyn | \== Cute Quote: "Welcome to Oregon... Home of the California Raisins!" ==/