perl -i -0777 -pe 's/\n\n\n/\n/g' your-file [download]
In reply to Re: Perl one liner by JavaFan in thread Perl one liner by viktor