【linux】删除文件中的空行

1.sedweb sed ‘/^$/d’ file ‘匹配内容’ d 删除编程 2.grep 选中非空行编程语言 1.grep . file 2.grep -Ev '^$' file 3.grep -v -e '^$' file 3.awksvg 1.awk '!/^$/' file 删除空行 2.awk '/./' file 选中非空行 4.cat 和 tr 组合code cat file
相关文章
相关标签/搜索