我有这样的文件:
text2insert
filewithpattern
并且还知道:
图案
我怎样才能插入来自行text2insert成filewithpattern,但之后的pattern线?
使用bash 2.05b
更新:之前filewithpattern应该看起来像:
垃圾
pattern1
pattern2
垃圾
之后:
垃圾
pattern1
text2insert lines
text2insert lines
text2insert lines
pattern2
garbage