$ echo "test test test test" | tr -s '\n'
test test test test
$ echo "Hello World" | tr '[:lower:]' '[:upper:]'
HELLO WORLD