Section: String Operations

Uppercase string

bash
bash
name='Hello World'
echo "${name^^}"
Explanation

Useful for normalization and IDs.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing String Operations
Lowercase string
Convert a string to lowercase.
OpenIn sheetbashsame section
Trim prefix pattern
Strip a matching prefix from a string.
OpenIn sheetbashsame section
Trim suffix pattern
Strip a matching suffix from a string.
OpenIn sheetbashsame section
Split string into array
Split a delimited string into an array.
OpenIn sheetbashsame section
Join array with delimiter
Join array elements using IFS.
OpenIn sheetbashsame section
Create indexed array
Create an indexed array.