Hey, read the original request (was Re: sed question: lower-to-upper case)

Randal Schwartz merlyn at iwarp.intel.com
Wed Aug 23 09:44:19 AEST 1989


In article <455 at puffin.uss.tek.com>, richl at penguin (Rick Lindsley) writes:
| In article <4776 at omepd.UUCP> merlyn at 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 at iwarp.intel.com ...!uunet!iwarp.intel.com!merlyn	         |
\== Cute Quote: "Welcome to Oregon... Home of the California Raisins!" ==/



More information about the Comp.unix.questions mailing list