I was trying to convert the lowercase characters to uppercase. I came across various alternatives like one listing at the StackOverflow question. However, What i saw that these are just printed. I want to save it to another variable which i can use later.
Can anyone tell how i can achieve this?
Your input is
$a. The new variable is
(borrowed from here written by @ghostdog74)
b=$( tr '[A-Z]' '[a-z]' <<< $a)
if you use
tcsh, then use
echo instead of
set b=`echo "$a" | tr '[A-Z]' '[a-z]'`