in reply to Re^2: newlines in regular expressionsin thread newlines in regular expressions
perl -p -e 'BEGIN { undef $/ } s/\n{2,}/\n/g' [download]
Which can be shortened to:
perl -p0777e 's/\n{2,}/\n/g' [download]