Convert a string case in Bash

From link

s="Hello World!"
echo $s # Hello World!
a=${s,,}
echo $a # hello world!
b=${s^^}
echo $b # HELLO WORLD!

Leave a Reply

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