源文件:
api@linux-45:~/develop/apiDev2014/test/test20160129> cat -n Terminal_20160428_ATM.txt
1 09,atm20160418055,020
2
3 09,atm20160418055,020
4
5
6
7 09,atm20160418055,020
8
9
10
11 09,atm20160418055,020
api@linux-45:~/develop/apiDev2014/test/test20160129>
执行命令:
api@linux-45:~/develop/apiDev2014/test/test20160129> sed -i '/^$/d' Terminal_20160428_ATM.txt
结果文件:
api@linux-45:~/develop/apiDev2014/test/test20160129> cat -n Terminal_20160428_ATM.txt
1 09,atm20160418055,020
2 09,atm20160418055,020
3 09,atm20160418055,020
4 09,atm20160418055,020
api@linux-45:~/develop/apiDev2014/test/test20160129>
阅读(969) | 评论(0) | 转发(0) |