Let shell/terminal paste by replacing newline with space

Let shell/terminal paste by replacing newline with space

How do I paste into a shell or terminal and simultaneously replace every newline with a space?

相关内容