grep omit empty lines:
cat <something> | grep -v "^$"
I keep forgetting this regexp of “match expression at the star of the line”: the “^”