Skip to main content
edited tags
Source Link
Penny Liu
  • 17.9k
  • 5
  • 89
  • 109

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

foo="bar"; //uppercase first character echo $foo; 

should print "Bar";Bar.

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

foo="bar"; //uppercase first character echo $foo; 

should print "Bar";

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

foo="bar"; //uppercase first character echo $foo; 

should print Bar.

corrected spelling
Source Link
James Vu
  • 2.5k
  • 3
  • 16
  • 33

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

foo="bar"; //uppercase first character echo $foo; 

should print "Bar";

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

foo="bar"; //uppercase first character echo $foo; 

should print "Bar";

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

foo="bar"; //uppercase first character echo $foo; 

should print "Bar";

Source Link
chovy
  • 76.2k
  • 63
  • 249
  • 324

uppercase first character in a variable with bash

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

foo="bar"; //uppercase first character echo $foo; 

should print "Bar";