Turn output into a single line

ls -l| xargs
click the source code to copy