perl -pi.bak -e 'BEGIN{undef $/} print "\n"' foo* [download]
In reply to Re (tilly) 1: Yet another one-liner by tilly in thread Yet another one-liner by wardk