Zend certified PHP/Magento developer

How to edit code in many files (find and replace) on ftp in different folders, regularly?

I have a website with many subdomains. I have to edit (with “Find and Replace”) 4 files in each folder (different .php-files, i am using Notepad++) and do it 1 time in 7 days.

I know how to use “Find and Replace” in folder in Notepad++, but i do not how to make it work with FTP.

In my case I…

  1. Opened all needed files by hand in FTP-folders with Notepad++.
  2. Pressed “Find and Replace in Open files”, and do it.
  3. Pressed “Save all” and accepted uploading changes in ftp-manager.

Is there any faster, safer and simpler way to do my task?