📜  将 bash 变量传递给 sed - Shell-Bash 代码示例

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

代码示例1
rr=abcd # in shell

sed -i "s/aaa/$rr/g" file.dat 

# -i will update thefile,