This question already has an answer here:
I'm trying to merge these two lines that appear periodically in a text file.
I have tried:
sed '/_\nby/_by/s' input.txt > output.txt
but, it doesn't do anything.
Do I have to escape something?
It's a text file created in ubuntu 12.04