====== SED - Delete - Delete all CONSECUTIVE blank lines from file except the first 2 ====== sed '/^$/N;/\n$/N;//D'