📜  如何使用 sed 输出覆盖现有文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:26.146000             🧑  作者: Mango

代码示例3
# Finds a specific string with regex and appends content
# overiding existing file. 
sed '/regex/a'  | tee 
# Example
sed '/\[task_concurrency\]/a 'execute=True'' carbon.cfg | tee carbon.cfg