Answers for "sed replace substring in file"

20

replace text with sed

sed -i 's/old-text/new-text/g' input.txt
Posted by: Guest on March-31-2020
15

sed replace in file

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language