Custom Search

Saturday, 21 April 2012

Write a Linux shell script to convert uppercase to lowercase letters for a given file, Unix program to convert uppercase to lowercase letters


Write a Linux shell script to convert uppercase to lowercase letters for a given file, Unix program to convert uppercase to lowercase letters


Program
clear


echo"Enter file name:"
read fn


a='tr'[A-Z]''[a-z]'<$fn'
echo$a


Output:
Enter File name: temp.sh
ALL THE CONTENT IS CONVERTED INTO CAPITAL LETTERS.
<<< Previous  ||  Current  ||  Next >>>  

No comments:

Post a Comment

Laptops