Answers for "env var linux to uppercase lowercase"

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

Code answers related to "env var linux to uppercase lowercase"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language