Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux replace string in files recursively

find . -type f -name "*.txt" -exec sed -i'' -e 's/foo/bar/g' {} +
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #linux #replace #string #files #recursively
ADD COMMENT
Topic
Name
7+3 =