Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

search and replace recursive text file linux

grep -rl "oldtext" /path/to/folder | xargs sed -i 's/oldtext/newtext/g'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #replace #recursive #text #file #linux
ADD COMMENT
Topic
Name
4+9 =