sed question: lower-to-upper case

Rick Lindsley richl at penguin.USS.TEK.COM
Tue Aug 22 09:54:14 AEST 1989


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



More information about the Comp.unix.questions mailing list