I want to uppercase just the first character in my string with bash.
foo=\"bar\"; //uppercase first character echo $foo;
should print \"B
Here is the "native" text tools way:
#!/bin/bash string="abcd" first=`echo $string|cut -c1|tr [a-z] [A-Z]` second=`echo $string|cut -c2-` echo $first$second