And, here's one for some types of Apple textfiles which are also full of ^Ms but in a different way.
tr '\r' '\n' < testfile > testfile.new
Thats actually not perfect, it will leave in a few little things here and there--only ran into this once when a vendor sent us something, but it at least makes the file readable.
Last edited by scottro; 19th May 2008 at 05:44 PM.
Reason: typo
|