SyntaxFix
Write A Post
Hire A Developer
Questions
You could try removing any alphanumeric characters and space. And then use -n will give you the line number. Try following:
-n
grep -vn "^[a-zA-Z0-9 ]*$" application.log