Advertisement

02.01.2008 at 07:35AM PST, ID: 23129767
[x]
Attachment Details

Perl Script to Find and Replace on Multiple Files on Server

Asked by timshank in Perl Programming Language

I would like a script written that will do a find and replace on my server. In your example please find abc and replace it with 123.

I would like to narrow down the find and replace to specific directories and any existing sub-directories of that path. In the example please use /home/mysite/public_html/

The script should look for only the code to replace in files with the .html and .php extensions.

I do not want the script to create a backup file.

Thank YouStart Free Trial
[+][-]02.01.2008 at 07:54AM PST, ID: 20797585

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 08:56AM PST, ID: 20798277

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 08:59AM PST, ID: 20798314

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 09:00AM PST, ID: 20798329

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 09:14AM PST, ID: 20798477

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.01.2008 at 09:16AM PST, ID: 20798504

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Sign Up Now!
Solution Provided By: jasonsbytes
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.01.2008 at 09:23AM PST, ID: 20798553

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628