grep: grep -v '^$' file<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

sed: sed '/^$/d'  file 或 sed -n '/./p' file

awk: awk '/./ {print}' file