一、文本间隔1、在每一行后面增加一空行sed G guo.shawk"{printf("%s
",$0 ) }"2、将文件中原来的空行删掉,并在在每一行后边增加一空行sed"/^$/d;G "awk"!/^$/ {printf("%s
",$0 ) }"3在匹配式样的行前插入一空行sed"/good/i\"sed"/hello/{x;p;x;}"awk"{ if(/hello/) printf("
\%s
",$0);else print $0}"4、在匹配式样的行后插入一空行sed"/good/a\"sed"/hello/G"awk"{if(/hello/) printf("%s
",$0) ;else print $0}"5、在匹配式样的行前、行后各插入一空行sed"/hello/{x;p;x;G;}"awk"{ if(/hello/) printf("
\%s
",$0);else print $0}"