Depends on what you're after. 'grep ^[^#]' also gets rid of empty lines, as they don't have a first character to match.