I have a text file which contains data in the below format.
1|0|this is test file line1 2|1|this is test file line2 3|1|this is test file line4 Any line that does not contain | should be appended to the previous line which contains |
Output:
1|0|this is test file line1 2|1|this is test file line2 3|1|this is test file line4