5

Removing carriage return/line feeds on multiple lines

view full story
linux-howto

http://www.unix.com – I would like to remove carriage returns/line feeds in a text file, but in a specific cadence: Read first line (Header Line 1), remove cr/lf at the end (replace it with a space ideally); Read the next line (Line of Text 2), leave the cr/lf intact; Read the next line, remove the cr/lf; Read the next line (Header Line 2), remove cr/lf at the end (replace it with a space); Read the next line (Line of Text 2), leave the cr/lf intact… Here is my input data, in red of the cr/lf I would like deleted Code: Header Line 1 <cr/lf> ( replace with a space) Line of Text 1<cr/lf> < (HowTos)