转发自
https://blog.csdn.net/m0_67390788/article/details/123969932
grep -vE "#|^$" filename
或者
grep -v "#\|^$" filename