Answers for "replace every text after sed"

20

replace text with sed

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

how to replace a text and delete other text using sed

$ sed -e "s/foo/bar/" -e "/FOO/d"
Posted by: Guest on February-17-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language