tr

Convert newline to space
cat test.txt | tr "\n" " "
Convert upper case to lower case
cat test.txt | tr [A-Z] [a-z]