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.