1) grep -v option for the exclusion
to exclude empty command line is:
grep -v '^ $' filename
2) # exclude annotation command is:
grep -v '^ #' filename
3) combine is that both exclude blank lines and comment exclude command line
grep -v "^ #" nova.conf | grep -v "^ $"