Answers for "two sed command together"

0

two sed command together

sed -i -e "s/aaa/bbb/g" -e "s/sss/bbb/g" file
#-i update document
Posted by: Guest on July-28-2021
1

two sed command together

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 "Shell/Bash"

Browse Popular Code Answers by Language