upper()

Converts a string to uppercases. If it receives a value other than the string, it evaluates the value after converting it to a string.

Syntax

upper(STR_EXPR)
Required Parameters
STR_EXPR
Source string expression. If the expression is null, the function returns null.

Usage

json "{}" | eval UPPER=upper("Hello World")
  => "HELLO WORLD"

json "{}" | eval UPPER=upper(1234)
  => "1234"

json "{}" | eval UPPER=upper(null)
  => null