The following shell script will convert lower case letters to upper and uppercase to lower case.
bash-3.00# echo ramu | tr "[:lower:]" "[:upper:]"RAMUbash-3.00# echo RAMU | tr "[:upper:]" "[:lower:]"ramubash-3.00# echo RamU | tr "[:upper:]" "[:lower:]"ramu