Replacing text from multiple files at multiple location

Hi,

I have many files scattered in all different folders. I want to replace the text within all the files using a single command ( awk, sed...) Is it possible?

example

find all the files in which there is text "memory" and replace it with "branded_memories".

the files can be at the following locations or diectories.

/data/jobs/temp/subject.txt
/data/jobs/temp/control/SSC/something.txt
/data/jobs/temp20/subject.txt
/data/jobs/temp21/SRE/touch.txt

Thanks,

for i in $(find /data/jobs/* -name "*.txt" -print)
do
awk ' { gsub("memory","branded_memories"); print > FILENAME } ' $i
done

Perl will do this in place, if you throw a PIE into the mix:

my_list="fileA.txt fileB.txt $(find /data/jobs -name "*.txt" ) "
for i in ${my_list} 
do 
   perl -pi -e 's/{fr_string}/{to_string}/g' ${i} 2>/dev/null 
done