Hi,
On Sat, Jun 23, 2001 at 10:36:39PM -0000, catbird@airmail.net wrote:
> I have the funny sources from then NET for FBUG68k. But it seems to
> have come from ATT UNIX with CR but not NL. Needless to say I need
> 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
> 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]
Both crlf and the Perl one-liner will do in-place substitution.
As a last resort you can use tr:
tr -d '\r' <OLDNAME >NEWNAME
If you load a file into vim (not vi!) you may be able to change the CRLF
by typing "ESC:set fileformat=unix" and then save the file ("ESC:wq").
Ciao
Guido
Attachment:
pgpjfnZ6ttmz6.pgp
Description: PGP signature