Issue
How would I join two lines using awk or sed?
I have data that looks like this:
abcd
joinabcd
efgh
joinefgh
ijkl
joinijkl
I need an output like the one below:
joinabcdabcd
joinefghefgh
joinijklijkl
Solution
awk '!(NR%2){print$0p}{p=$0}' infile
Answered By - Dimitre Radoulov Answer Checked By - Robin (WPSolving Admin)