You are currently viewing Convert Upper case letters to lower case using shell programming

Convert Upper case letters to lower case using shell programming

  • Post author:
  • Post category:Linux
  • Post comments:0 Comments
  • Reading time:1 mins read

Now we going to see Conversion of upper case letter to lower case letter using Linux shell programming, Here the source code is given to generate the conversion,

Please save this source using <filename>.sh extension,

Source code for conertion :

[sourcecode language=’css’]
echo “CONVERT UPPER CASE TO LOWER CASE”
echo “OUTPUT:”
echo “Enter a string :”
Read str
temp = ` $str | tr [A-Z] [a-z] `
echo “The lower case string is:”
echo “$temp”
[/sourcecode]

To copy above source code, Use pastebin

Balaji

, is a computer science graduate. He is interested in sharing the system tweaking ,Web-designing, SEO and tips to use your system fetching you utmost use. Happy tweaking! :D

Leave a Reply