How can I convert last character of the string to upper case ?
ex:
foo=test echo ${foo^} this works for first character
Test I want the output to be
TesT How does this work?
How can I convert last character of the string to upper case ?
ex:
foo=test echo ${foo^} this works for first character
Test I want the output to be
TesT How does this work?