You can combine the # and the $(space) in one grep statement:
# grep -v '^#\|^$' /etc/some/conf/file]]>
@Stoyan
Thanks for sharing, we will try it out.
]]>@Rishi
Thanks for the kind words of appreciation, and for following us.
]]>Yes, right.
]]>