blob: 510037c2f7913378ce24690ce0e230d75bcf0373 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/perl
undef $/;
foreach $f ( @ARGV ) {
if ( open( F, "< $f" ) ) {
$i = <F>;
close F;
$i =~ s/\n/\r\n/g;
$i =~ s/\r+/\r/g;
if ( open( F, "> $f" ) ) {
print F $i;
close F;
}
}
}
|