Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux capitalize string using tr

# capitalize a raw string 'abc' 
echo abc | tr a-z A-Z
ABC
# capitalize text from file 'hello_world.text' 
tr a-z A-Z < hello_world.text
HELLO WORLD
 
PREVIOUS NEXT
Tagged: #linux #capitalize #string #tr
ADD COMMENT
Topic
Name
8+2 =