Answers for "bash sed replace with variable in file"

15

sed replace in file

sed -i 's/foo/bar/g' hello.txt
Posted by: Guest on March-01-2020
0

sed replace with variable

sed -i "s/$var1/ZZ/g" "$file"
Posted by: Guest on August-03-2021

Code answers related to "bash sed replace with variable in file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language