Answers for "file replace in linux"

19

linux replace string in all files

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

how to find and replace on linux

find . -type f -name "*.md" -print0 | xargs -0 sed -i 's/foo/bar/g'
Posted by: Guest on March-19-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language