【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
相關文章
相關標籤/搜索