I'm with Nick on this one. I use the regexp tools in emacs, but if you
are wanting to continually change back and forth. There is a program
called "flip" that specifically is made for this and is probably easier
than remembering perl or sed commands..
apt-get install flip
and have fun. :)
On Thu, 2004-12-09 at 08:55 -0700, Kevin Geiss wrote:
> > 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 - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
Derek Neighbors
GNU Enterprise
http://www.gnuenterprise.org
derek@gnue.org
Was I helpful? Let others know:
http://svcs.affero.net/rm.php?r=dneighbo