replacing ^M with emacs

Mike Ginsburg mginsburg at collaborativefusion.com
Fri Oct 27 19:51:45 UTC 2006


There is a program in ports called unix2dos.  With it comes the command 
dos2unix that automatically goes through the specified file and removes 
all of the ^M

--Mike Ginsburg

Derek Ragona wrote:
> Those ^M's are the MS-DOS EOL character.  You can use sed,  or tr to 
> remove them via a commandline pipe.
>
>         -Derek
>
>
> At 02:26 PM 10/27/2006, Noah wrote:
>> Hi there,
>>
>> It appears that a text editor placed a bunch on ^M throughout a text 
>> file I am working with.  I assure this is equivalent to eh keystroke 
>> control-M.
>>
>> How might I get emacs to search replace
>>
>> also is there a mail list focused specifically on emacs usability?
>> please refer me to it?
>>
>> Cheers,
>>
>> Noah
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe at freebsd.org"
>>
>> -- 
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>> MailScanner thanks transtec Computers for their support.
>>
>



More information about the freebsd-questions mailing list