case modification

The ${name^^} and ${name,,} forms, which convert a value to upper or lower case; a single caret or comma changes only the first letter.

In more detail

It arrived in bash 4, so it fails on the bash 3.2 that ships with macOS and in POSIX sh. Use tr for the same job in a portable script.

Example

echo "${name^^}"

Related terms

Taught in

References