Answers for "changing uppercase to lowercase in linux"

1

env var linux to uppercase lowercase

If you are using bash 4 you can use the following approach:

x="HELLO"
echo $x  # HELLO

y=${x,,}
echo $y  # hello

z=${y^^}
echo $z  # HELLO
Posted by: Guest on October-09-2021
0

convert capital letters to lowercase in shell script

x="HELLO"
echo $x  # HELLO

y=${x,,}
echo $y  # hello

z=${y^^}
echo $z  # HELLO
Posted by: Guest on March-15-2021

Code answers related to "changing uppercase to lowercase in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language