Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux replace string in files recursively

find /home/www ( -type d -name .git -prune ) -o -type f -print0 | xargs -0 sed -i 's/subdomainA.example.com/subdomainB.example.com/g'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #replace #string #files #recursively
ADD COMMENT
Topic
Name
6+2 =