$cat contents.txt
cat-1.15
cat-1.15
cat-1.15
cat-1.18
The above output has blank lines
$cat contents.txt | grep cat
results in the word cat being highlighted, but the resultant text is also merged, eliminating blank lines
cat-1.15
cat-1.15
cat-1.15
cat-1.18
How can I grep to highlight without grep affecting the text structure, so that the only difference is the grep term being highlighted ?