Issue
I want to uppercase just the first character in my string with bash.
foo="bar";
//uppercase first character
echo $foo;
should print "Bar";
Solution
foo="$(tr '[:lower:]' '[:upper:]' <<< ${foo:0:1})${foo:1}"
Answered By - Michael Hoffman Answer Checked By - Marilyn (WPSolving Volunteer)