[Shell command] Convert text to lowercase with awk

Created on November 30, 2026

You can use awk's tolower() function to convert text to lowercase. In this example, $0 is the full input line.

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