Question : uppercase first str bash
Answered by : annoying-armadillo-l2hcrkposgyo
foo="bar"
echo "$(tr '[:lower:]' '[:upper:]' <<< ${foo:0:1})${foo:1}"
#returns 'Bar'
Source : | Last Update : Wed, 09 Jun 21
Answered by : annoying-armadillo-l2hcrkposgyo
foo="bar"
echo "$(tr '[:lower:]' '[:upper:]' <<< ${foo:0:1})${foo:1}"
#returns 'Bar'
Source : | Last Update : Wed, 09 Jun 21