Removing #comment lines from Conf file

Everyone knows that squid.conf have millions of #comment lines.
here is a one liner to remove it:

grep -v '^#' squid.conf | uniq | sort >squid.nocomment

this could apply to any files in Linux which has the # at the front.
Reference here