Monday, November 23, 2015

How to uppercase string in linux command line

Presume you have a text:
sdfgsd 
sdgsd

and you need to convert test to upper case by smth in OS

1) Wrap text with "tr [a-z] [A-Z]<<EOF" and "EOF" at top and bottom respectively and copy to terminal.

tr [a-z] [A-Z]<<EOF
sdfgsd 
sdgsd
EOF

SDFGSD
SDGSD

2)
go to browser and do search for any online service that do uppercase: http://lmgtfy.com/?q=convert+case+of+text+online