cat /etc/some.conf|grep -Ev '^#|^;|^$'
This assumes that comments start with # or ; (adjust as necessary). Also note that the ^$ omits blank lines.
conf, comments, etc, grep, ev, assumes, adjust, omits,