I tried grep -v \'^$\' in Linux and that didn\'t work. This file came from a Windows file system.
grep -v \'^$\'
I tried hard, but this seems to work (assuming \r is biting you here):
\r
printf "\r" | egrep -xv "[[:space:]]*"