LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Converting lowercase to uppercase (https://www.linuxquestions.org/questions/programming-9/converting-lowercase-to-uppercase-21220/)

noodle123 05-17-2002 01:58 PM

Converting lowercase to uppercase
 
I'm trying to convert a file which is in all uppercase so that the output when read out will be lower case.. or vice vera, but i don't know how to do it.

I've looked up man bash and it says something about upcase and M-u but i can't get it to work... anyone have any ideas how to do this?

noodle123 05-17-2002 02:12 PM

haha nevermind i found out how to do it..

A=TEST

echo $A | tr "[A-Z]" "[a-z]"


output: test

:D


All times are GMT -5. The time now is 12:47 AM.