在文件foo.txt的每两行之后添加来自文件address.txt的一行内容$ cat foo.txtbla bla 2015 blablah 2018 blahbla bla blacopyright: 2020$ cat address.txtstart address: 0xA0, func1 address: 0xA0end address: 0xFF, func2 address: 0xB0$ sed -n 'p' address.txt | sed -e '________________' foo.txtbla bla 2015 blablah 2018 blahstart address: 0xA0, func1 address: 0xA0bla bla blacopyright: 2020end address: 0xFF, func2 address: 0xB0
在文件foo.txt的每两行之后添加来自文件address.txt的一行内容$ cat foo.txtbla bla 2015 blablah 2018 blahbla bla blacopyright: 2020$ cat address.txtstart address: 0xA0, func1 address: 0xA0end address: 0xFF, func2 address: 0xB0$ sed -n 'p' address.txt | sed -e '________________' foo.txtbla bla 2015 blablah 2018 blahstart address: 0xA0, func1 address: 0xA0bla bla blacopyright: 2020end address: 0xFF, func2 address: 0xB0
1