Remove carriage returns in a text file

JoeHill joehill-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Tue Feb 20 02:37:46 UTC 2007


Craig Routledge descended, with this inscribed on tablets:

> On 2007-02-19 21:04, JoeHill wrote:
> > 
> > I have a text file that was apparently saved on a Windows box using
> > Notepad or somesuch, because it is replete with carriage returns (^M)  
> 
> The command dos2unix is what you want, and should be present on most  
> distributions.  No fuss.  No muss.  There are also unix2dos and mac2unix.

Now, that's hardly ubergeek...I didn't even have to use Vim ;-)

Thank you very much!

-- 
JoeHill
++++++++++++++++++++
"The point is, you shouldn't eat things that feel pain." *BONK!* "Ow!"
"Okay, we won't eat you!"
 --hippie & Bender
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list