I want to uppercase just the first character in my string with bash.
foo="bar"; //uppercase first character echo $foo;
should print "Bar";
One way with bash (version 4+):
foo=bar echo "${foo^}"
prints:
Bar
1.4m articles
1.4m replys
5 comments
57.0k users