cat $file | egrep -v '^;|^$' $file that will exclude lines that begin with the ';', and empty lines.
in regex, ^ indicates the beginning of a line, and $ the end of a line, so ^$ specifies lines where the start of line character and the end of line character are right next to each other.