Remove Newlines from Command Line Output
July 2012
You can remove newlines from command line tools the return a single line of text by piping it to:
For example:
| Alternative with awk
This is a more verbose way to do it with awk
| end of line