1)grep的排除选项为 -v排除空行的命令是:grep -v '^$' filename
2)排除以#注释的命令是:grep -v '^#' filename
3)结合起来就是,既排除空行又排除注释行的命令grep -v "^#" nova.conf | grep -v "^$"