expansion

Bash Uppercase matching characters

Bash 4.0+; converts applicable matching characters to uppercase in the current locale.

Formal Syntax & Structure

bash syntaxbash
${p^^pattern}

Return Value

shell expansion result

Bash 4.0+; converts applicable matching characters to uppercase in the current locale.

Working Example

Example Snippetbash
p=helloprintf '%s\n' "${p^^}"
Bash Reference