How to remove line breaks from lines ending with a comma
Hi, I have a CSV file that's created in an application that can't output lines longer than 250 characters. Unfortunately, the data fields, all together, are longer than this. how would I remove the line break from every line that ends with a comma?
For example:
A,B,C
D,E,
F
G,H,I
becomes:
A,B,C
D,E,F
G,H,I
Thanks!
|