I need to replace several chunks of text inside some php scripts...
i have:
find . -name 'products.php' -exec grep --silent 'TEXT_TO_FIND' {} \; -exec ls {} \; -exec sed -i 's/TEXT_TO_FIND/REPLACE_TEXT/g' {} \;
this work, but i have text of about 2 ou 3 lines..
so i remember to create a find.txt with my find text and another replace.txt with the replacement text..
my question is.. how can i use this files as inputs in the above command..
something like:
find . -name 'products.php' -exec grep --silent `cat find.txt` ...
Best regards Bruno