zoer@ubuntu:~/aa$ cat data here is a test naughty loves cc and so on.... zoer@ubuntu:~/aa$ cat dd testline1 testline2 zoer@ubuntu:~/aa$ sed '/naughty/r dd' data here is a test naughty loves cc testline1 testline2 and so on....
使用r就可以了,你仿照上面的试试