'Ubuntu replace all string1 to string2 in all files in all folders recursively

perl -pi -e 's/somestring1/somestring2/g' *

I use the above comment to replace all occurences of somestring1 into somestring2 in a folder.

However, I want to apply the above command recursively to all folders inside the current folder.

How can I do so?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source