Wednesday, 18 December 2013

Write a linux shell program to perform convert lowercase to uppercase using tr statement

 Convert lowercase to uppercase using tr statement

Code:

clear 
echo --------------------------------------------- 
echo '\tlower case to UPPERCASE' 
echo --------------------------------------------- 
echo Enter the name of the File 
read filename 
echo File content in Uppercase 
tr '[ a-z ]' '[ A-Z ]' < $filename 

Output:

No comments:

Post a Comment