1、借助grep过滤空行:'^$'
2、显示过滤到以外的内容,-v
综上:
grep -v '^$' nowcoder.txt