Search This Blog

Sunday, October 1, 2023

Shell script 8

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

What is the sanity checks you have done for STA?

 Sanity checks for STA: Linking Checks: We need to check., is there any missing modules or missing pins in a library. this is done by link c...