sed ':a;N;$!ba;s/\n//g' fileto avoid spending a lot of time on it when I need it again.
Removing newlines with sed
My goal for today: I want to remember the official sed FAQ solution to replace multiple newlines: