目录

grep

grep -Ev "^#|^$"  文件信息.txt

sed

sed -n '/^#|^$/!p' 文件信息.txt

awk

awk '/^#|^$/'
#$0为所有,~为匹配正则
awk '$0~/^#|^$/'  awk_test.txt