Re: Oddiments

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin Geiss
Date:  
To: plug-discuss
Subject: Re: Oddiments
the easiest way to switch the end of line characters is to use sed or
perl. since I know perl I tend to use it. I'm sure it can be done
inside of emacs, but I don't know emacs, so here's how to do it with
perl:

to remove the ^M chars from the file:

perl -p -i -e 's/\r\n/\n/' files

where 'files' is a list of all the files you want to change the line
endings in.

to put ^M back into the file:

perl -p -i -e 's/\n/\r\n/' files


On Wednesday 08 December 2004 11:10 pm, Trent Shipley wrote:
> Also, is there an easy way to make the stupid ^M's go away (and
> come back)?
>
> How do you enter a ^M?  C-M doesn't seem bound to anything?

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss