codice:
cat tuofile.txt | tr "\n" " " | sed -e 's/\s*//g'
Ops... non usi linux?