View Single Post
Old 19th May 2008
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

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
Reply With Quote