I want to uppercase just the first character in my string with bash.
foo=\"bar\"; //uppercase first character echo $foo;
should print \"B
$ foo="bar"; $ foo=`echo ${foo:0:1} | tr '[a-z]' '[A-Z]'`${foo:1} $ echo $foo Bar