How do I make this:
TextTextText
start
stuff
stuff
stuff
end
start
stuff
end
TextTextText
Look like this:
startstuffstuffstuffend
startstuffend
with sed? I tried this:
sed -e '/start/,/end/N; s/\n//'
but it did this:
startstuff
stuffstuff
endstart
stuff
end
It's only every second line...