Answers for "passing bash variable to sed"

1

passing bash variable to sed

rr=abcd # in shell

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

# -i will update thefile,
Posted by: Guest on May-26-2021

Code answers related to "passing bash variable to sed"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language