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






Reply via email to