在模式之前从文件插入文本

时间:2016-03-02 05:53:40

标签: linux sed

我有两个文件(s.txt,d.txt),并希望在包含'hello'的行之前将s.txt插入d.txt。 我用

sed '/hello/i/r s.txt' d.txt

0 个答案:

没有答案
相关问题