将字符串转换为大写

函数 toupper 将字符串转换为大写字母(大写字母)。例如:

BEGIN {
    greeting = "hello"
    loud_greeting = toupper(greeting)
    print loud_greeting
}

此代码在运行时将输出 HELLO。