I want to uppercase just the first character in my string with bash.
foo=\"bar\"; //uppercase first character echo $foo;
should print \"B
Alternative and clean solution for both Linux and OSX, it can also be used with bash variables
python -c "print(\"abc\".capitalize())"
returns Abc