Sometime in scripting you don't get to choose your input format. For example, you might get data in multiple lines when you actually need it all in a single line. For such occasions you can go with:
Terminalcat file | awk '{printf "%s", $0}'
Likewise you might want lines separated by a space. Slight modification makes it happen:
Terminalcat file | awk '{printf "%s ", $0}'
Lastly, you might want to split a single line into multiple ones (handy for base64 printouts):
Terminalcat file | fold -w 72
PS: Check fmt
if you need word-aware line splitting.