Question:
How to convert from one case to other case
#!/usr/bin/bash
## this script is used for converting from lower case letters to upper case letter
user_name=Raju
user_fname=LAWRENCE
echo "$user_name" | tr '[:lower:]' '[:upper:]'
echo "$user_fname" | tr '[:upper:]' '[:lower:]'
Output:
kalam@DESKTOP-OSJTLNE:~$ sh case_sen.sh
RAJU
lawrence
No comments:
Post a Comment