Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #env #var #linux #uppercase #lowercase
ADD COMMENT
Topic
Name
4+7 =