How to translate lower case to upper?

Asked By 0 points N/A Posted on -

How could I translate lower case to upper case by using commands on Linux S.US.E, 

Output should be seen on file not on terminal. What command should be used?

Answer in simple way.

Best Answer by CapeSteve
Best Answer
Best Answer
Answered By 15 points N/A #126001

How to translate lower case to upper?


You can do it by writing a program on shell script and creating a file. Output will be seen on the file o extension .caps. Which will be auto generated at run time.

Let me give you a demo program so that you can get familiar of it. Take it as tutorial. 

Write command for creating shall script. Let’s name it as write a program within it.

  • cat>


#!/big/bash ( this is bang line)

For file


tr a-z A-Z <$file>$file.caps


(Program ended. Now you need to come out from this mode by pressing ctrl+D)

Now gives user rights.

  • Chmod +x



Now create a file on desktop manually by write click on vacant space. Go to new and click on file. Named that file as a. write your note on fila a.

  •  ./ a



Since, is shell script and a is a file name.

You will see the output. When click on the .caps file. Which is auto generated. In this file you will see your note in caps or upper case or capital letters. that will be your required output.


Answered By 75 points N/A #126003

How to translate lower case to upper?



First create a text file in your desktop manually named Test.txt, then jump to the command line and use the below command shown to get the output in File Test.txt

$ echo chris| tr ‘[:lower:]’ ‘[:upper:]’  > Test.txt

Result will be CHRIS, which will be shown in the file Test.txt.

Login/Register to Answer

Related Questions