我正在尝试在给定模式之前插入文件内容
这是我的代码:
sed -i "" "/pattern/ { i\\ r $scriptPath/adapters/default/permissions.xml" }" "$manifestFile"
它添加路径而不是文件的内容.
有任何想法吗 ?
bash sed
bash ×1
sed ×1