Shell Script

Shell script: Convert text to lowercase and uppercase

Shell script

s="Hello World!" 

echo $s  # Hello World!

a=${s,,}
echo $a  # hello world!

b=${s^^}
echo $b  # HELLO WORLD!

O/p

By bm on March 23, 2017 | ubuntu | 1 comment
Tags: ,