I want to convert string into uppercase string. How can i do that ? Ex: Enter the user name:
read name
show=upper(name)
echo $show --- This output should be the uppercase output.
Thanks
I want to convert string into uppercase string. How can i do that ? Ex: Enter the user name:
read name
show=upper(name)
echo $show --- This output should be the uppercase output.
Thanks
Following may help u :
echo "hello" | tr "[a-z]" "[A-Z]"
an alternative using 'awk'
echo "hello" | awk '{ print toupper($1) }'
Using ksh...
read name
typeset -u show=$name
echo $show