Tr: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
=To Uppercase=
=To Uppercase=


Also see [[Bash_Parameter_and_Variable_Expansion#To_Uppercase|bash Parameter and Variable Expansion]]
Also see [[Bash_Parameter_and_Variable_Expansion#To_Uppercase|bash Parameter and Variable Expansion]].


==First Character==
==First Character==

Revision as of 20:03, 20 September 2019

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:]'