Thanks for that but it didn't help.
I'm trying to achieve this effect:
sed -e 's/\n+/\n/g' file.txt
The above doesn't work.
Basically, I have a lot of newlines, and want to collapse them to 1 newline.
This code from the linked page didn't work:
sed -e ':a;N;$!ba;s/\n/ /g' file.txt
(it eliminated all newlines)
edit: changed the code to the original from the linked page (none of them has worked anyway...)