I want to uppercase just the first character in my string with bash.

foo="bar";

//uppercase first character

echo $foo;

should print “Bar”;

15 Answers
15

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *