sed 在匹配行前后添加内容

1、行前加

 sed -i '/allow linux.com/i\allow linux.cn' the.conf.file