egrep -v "^$|^[[:space:]]*#" /path/to/file