Answers for "replace all occurence in a file bash"

14

linux replace string in all files

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

bash find and replace all files with specifc name with another file

find . -name "boom.txt" -exec cp ~/replace.txt {} ;
Posted by: Guest on June-25-2020

Code answers related to "replace all occurence in a file bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language