Lower->Upper in AWK (was: Re: cascading pipes in awk)

Gunter Steinbach steinbac at hpl-opus.HP.COM
Fri May 26 03:56:08 AEST 1989


    This may make awk purists wail, but why not use:

    awk 'some stuff;
	some condition {print | "tr [a-z] [A-Z]"}' |
    awk 'other stuff'

    It works, albeit slow due to two awk calls, but it saves a lot of typing
    over some of the other suggestions.



More information about the Comp.unix.questions mailing list