Tr
Jump to navigation
Jump to search
Internal
Overview
Translate characters.
To Uppercase
Also see bash Parameter and Variable Expansion.
First Character
$(echo ${var_name:0:1} | tr '[:lower:]' '[:upper:]')${var_name:1}
All Characters
echo "hi" | tr '[:lower:]' '[:upper:]'