On 2002.02.18, at 14:47, Chris Devers wrote:
> On Mon, 18 Feb 2002, Peter N Lewis wrote:
>
>> Does anyone know a good trick?
>
> Would it be worth skimming over the source code for a text editor for
> ideas? Vim can handle pretty much any line endings scheme you throw at
> it, and I'd assume Emacs can too. Maybe it would help you to look over
> what those editors are doing to see if you can get any ideas there.

   If you still care, all you have to do is a simple (and famous even) 
one liner to convert'em all.  Works on virtually any given platform.

        perl -i.bak -ple 's/(\012\015|\012|\015)/\n/g' files ....

Dan the Man with Too Many Architectures to Handle

Reply via email to