Bulk replace string perl script

 
Main
PHP tutorials
Downloads
Guestbook
Message board
Contacts
Links
PHP Manual

I. Introduction
II. PHP Reference
III. PHP Security
IV. Features
V. Functions
  Part II
  Part III
  Part IV
VI. PHP Api
VII. FAQ
VIII. Appendixes
IX. HTML Help


The scripts allow to perform the bulk replace the one string to another in many files by means one command line, for example
./bulk-replace.pl ./directory-name old_string new_string

The script will perform the replacing in html, htm or shtml files but you can add the new file extensions very easy.

To use this script just enter the command like follows:

./bulk-replace.pl ./directory-name old_string new_string

As result of this command the script will replace the old_string to new_string in all html, htm or shtml files in directory directory-name and in all sub-directories.

Click here to download ZIP archive

Click here to download TAR archive