我想在匹配的 PATTERN 之后将 file1 的内容插入到 file2 中。我只想在第一次出现 PATTERN 之后才这样做。
我想知道我需要对以下命令进行哪些修改以满足我的需要。
sed -i "/PATTERN/r file1" file2
sed text-processing
sed ×1
text-processing ×1