sed ':t;N;s/\n/,/;b t' filename

 

 

sed '/^\s*$/d' konghang.txt  删除文件中的空行

posted on 2019-10-26 19:30  海豚汪洋  阅读(2480)  评论(0编辑  收藏  举报