How do i find all files in a folder recursively by the specific name and rename them?

Solution 1:

The full solution would look as follows

find -name '*.file.php' -exec rename 's/\.file\.php$/.file1.php/' {} \;