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: Axelle Schmidt     Category: Unix / Linux / Ubuntu     Views: 7441

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: 



Axelle Schmidt
Axelle Schmidt author of Write a shell program to convert all the contents into the uppercase in a particular file is from Frankfurt, Germany.
 
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!