[Shell command] Convert text to uppercase with awk

Created on November 30, 2026

You can use toupper() in awk to convert text to uppercase. Here, $0 represents the entire input line.

echo "hello world" | awk '{print toupper($0)}'
HELLO WORLD
Shell command awk