Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » Homework HelpRSS Feeds

Write a shell program to convert all the contents into the uppercase in a particular file

Posted By: Niamh Hughes     Category: Unix / Linux / Ubuntu     Views: 5916

Write a shell program to convert all the contents into # the uppercase in a particular file.

Code for Write a shell program to convert all the contents into the uppercase in a particular file in Unix / Linux / Ubuntu

echo Enter the filename
read filename
echo Contents of $filename before converting to uppercase 
echo ----------------------------------------------------
cat $filename 
echo ----------------------------------------------------
echo Contents of $filename after converting to uppercase 
echo ---------------------------------------------------
tr '[a-z]''[A-Z]' < $filename 
echo ---------------------------------------------------
  
Share: 



Niamh Hughes
Niamh Hughes author of Write a shell program to convert all the contents into the uppercase in a particular file is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 

Other Interesting Articles in Unix / Linux / Ubuntu:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!