Ctrl + T

Replacing \n with ' ':

|sed -z 's/\n/ /g'


Replacing ' ' with \n:

|sed -z 's/ /\n/g'