Re: Your patches.


Subject: Re: Your patches.
From: Justin Bradford (justin@ukans.edu)
Date: Tue May 09 2000 - 22:09:41 CDT


On Wed, 10 May 2000, Martin Sevior wrote:

> For
> unix people, is there a nice way to convert <CR><LF> to <CR> under unix?

#!/usr/bin/perl

open IN, "$ARGV[0]";
$data = join '', <IN>;
close IN;
$data =~ /\n\r/\n/gs;
open OUT, ">$ARGV[0]";
print OUT $data;
close OUT;

You might want to test it first, as I just typed it in here (and have not
tested it). If you don't know perl, let me know, and I'll make sure it
actually works.

Justin



This archive was generated by hypermail 2b25 : Tue May 09 2000 - 22:09:52 CDT