Remove carriage returns in a text file
Craig Routledge
webstuff-MKqfGmd6cJs0gtvRndBQZNBPR1lH4CV8 at public.gmane.org
Tue Feb 20 02:26:36 UTC 2007
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.
--
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