Is it possible to replace only double newlines in a text file using sed, awk, grep, tr, or whatever is needed?
this
is
data
this
is
more
data
What I need to do is to replace all double newlines (\n\n, there is no whitespace) with a space, but keep all single newlines, as to have all my data points on their own line.
this is data
this is more data
Is this possible?