I tried grep -v \'^$\' in Linux and that didn\'t work. This file came from a Windows file system.
grep -v \'^$\'
Keep it simple.
grep . filename.txt