Answers for "make a change in file using sed linux"

14

sed replace in file

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

sed write changes to file

-i[SUFFIX], --in-place[=SUFFIX]

          edit files in place (makes backup if SUFFIX supplied)
Posted by: Guest on August-25-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language