sed删除多余空行 sed -i ' /^$/{ N /^\n$/D }' file Tags: sed删除多余空行, sed详解, shell删除多余空行 Read more articles Next Postsed在一个文件中插入另一个文件 You Might Also Like sed -n选项 September 16, 2015 here document June 9, 2015 sed空行规则 June 14, 2016