Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

uppercase first str bash

foo="bar"
echo "$(tr '[:lower:]' '[:upper:]' <<< ${foo:0:1})${foo:1}"
#returns 'Bar'
 
PREVIOUS NEXT
Tagged: #uppercase #str #bash
ADD COMMENT
Topic
Name
6+4 =