What is the proper way to convert first character of a string from upper to lower case in bash on Mac OS I am not on Bash 4 version to convert string by following command
$string="Hello"
echo ${string^}
Is there any other alternative way to do it?
Tried these commands too sed -e 's/./\L&/'
or sed -e 's/^./\L&\E/'
but didn't worked.
Any kind of help is appreciated. Thanks.