Lower->Upper in AWK (was: Re: cascading pipes in awk)
Scot Mcintosh
psm at manta.NOSC.MIL
Fri May 26 05:33:23 AEST 1989
In article <13921 at lanl.gov> dph at lanl.gov (David Huelsbeck) writes:
>
>Here is my solution to this problem along with a summary of solutions
>I recieved from other awkers when I posted asking for a better way.
> <<a number of upper-case conversion programs>>
Here's my brute-force solution to add to the pile:
#where s is the argument being converted
gsub(/a/,"A",s);
gsub(/b/,"B",s);
etc
Inefficient and inelegant, but at least it works.
More information about the Comp.unix.questions
mailing list