SyntaxFix
Write A Post
Hire A Developer
Questions
I tried hard, but this seems to work (assuming \r is biting you here):
\r
printf "\r" | egrep -xv "[[:space:]]*"