I have a file (test.dat) which contains data like this
459|199811047|a |b |shan
kar|ooty|
460|199811047|a |b |guru|cbe|
but I need it like:
459|199811047|a |b |shankar|ooty|
460|199811047|a |b |guru|cbe|
While reading the data from this file, I don't want to remove newline from the end of each record. I just want to remove the \n between two string (like:shankar) inside the pipe symbol.
actually inside the unix my dat file... consist of 500 character.. so the first 300 character appear in the first line and got break(newline)for the next 200 character... but the 500 should be treated like single line.. so am trying to append the characters which has got break because of newline.