1. sed -i '/^$/d' file