I do a massive search and replace in php files with this command:
find -type f -name \*.php | xargs sed -i 's|что заменить|чем заменить|' Tell me how to do it, so that he would not search in all folders, but only in those whose names are listed in the text file list.txt .
Contents of the list.txt file:
foldername1 foldername2 foldername3 и тд. Search and replace in these folders must be done recursively.
Thank.