I tried to convert a lowercase string to uppercase and assign it to a variable using the following code
The script is written in .tn extension
Below Works, Try this.
bash-3.2$echo lower to upper | tr '[:lower:]' '[:upper:]' LOWER TO UPPER # To Save in the variable use below var=$(echo lower to upper | tr '[:lower:]' '[:upper:]')