I want to uppercase just the first character in my string with bash.
foo=\"bar\"; //uppercase first character echo $foo;
should print \"B
One way with sed:
sed
echo "$(echo "$foo" | sed 's/.*/\u&/')"
Prints:
Bar