[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] A working 68000 SED program?



Hallo Guido

>>   SED or a method to change ^M to ^M^N so I can examine and compile the
>>   sources.  There are several C sources *( K&R C).  but each one is=20
>>   2 to 3K lines.  Too much to expect progess on a parttime basis.
>
>Try to find a program "crlf" in your path (comes with MiNT, try "crlf
>-h"). If you have Perl you can also do
>
>        perl -pi -e 's/\r\n/\n/' FILENAME[s]

He says he has only \r so

        perl -pi -e 's/\r/\n/' FILENAME[s]

or

        tr '\r' '\n' <OLDNAME >NEWNAME

would be better. Not testet.


-Helmut