sed '/^$/d' nowcoder.txt  或者 grep -v ^$ nowcoder.txt 新手不用考虑运行效率,内存占用,能实现功能才是硬道理