I have some files with this structure:2015-03-25 17:08:17sysUpTimeInstance 93474;^M1.ValueforState=2500I want to replace the line break, and leave the third line with the second line, I mean, the output would be like this:2015-03-25 17:08:17sysUpTimeInstance 93474;1.ValueforState=2500I tried with sed:sed 's/^M$//' myfile.dat > mynewfile.datBut it only removed the symbol ^MAny suggestions?
keep out line break
text processing;sed;awk;newlines;special characters