grep.1posix -vP '^((\s+|)(\/\/|#)|$)'
search a file for a pattern
-v     Select lines not matching any of the specified patterns.  If  the  -v  option  is  not  specified,
       selected lines shall be those that match any of the specified patterns.
source manpages: grep