Re: [CODE][NEWBIE][DGSCRIPTS][MAKEFILE]I need some help. ..

From: Stefan Wasilewski (smw@triton-network.com)
Date: 03/02/99


from dos to unix

#!/usr/bin/perl -w

while (<>) {
        s/\r//;
        print;
}

from unix to dos

#!/usr/bin/perl -w

while (<>) {
        chop;
        print;
        print "\r\n";
}



> If your looking for a program that will convert from UNIX to
> DOS formats
> >I am getting many many many errors from my makefile..which I
> patched on
> >a Win95 box...I am thinking that the problem is the
> linefeeds..is there
> >a prog out there to fix that? OR does anyone have a makefile


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST