Monday, March 29, 2010

Upper case, lower case

To change the letters in the string to upper or lower case we can use tr command:

$ echo "Hello world" | tr a-z A-Z
HELLO WORLD

$ echo "Hello world" | tr A-Z a-z
hello world