local $/ = undef; open IN, "fixed" or die "Couldn't open fixed: $!"; ($_ = ) =~ s/\n{2,}/\n/g; print OUT; close IN; close OUT;