grep -Ev "^#|^$" 文件信息.txt
sed -n '/^#|^$/!p' 文件信息.txt
awk '/^#|^$/' #$0为所有,~为匹配正则 awk '$0~/^#|^$/' awk_test.txt