From: http://www.cyberciti.biz/faq/howto-linux-unix-command-remove-all-blank-lines/
移除多余的行可以用:
$ sed ‘/^$/d’ input.txt > output.txt
$ grep -v ‘^$’ input.txt > output.txt
‹ Bash: 命令行参数传递 •
From: http://www.cyberciti.biz/faq/howto-linux-unix-command-remove-all-blank-lines/
移除多余的行可以用:
$ sed ‘/^$/d’ input.txt > output.txt
$ grep -v ‘^$’ input.txt > output.txt
一段日子不来,呵呵,发现你又更新了些许~
可惜我很少用到Linux啊~
— sink · 81 日 之前 · #