Crazy "Find and Replace"
Moderator: General Moderators
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Crazy "Find and Replace"
Hey guys...
I have a web application that has about 100+ php files that include some function calls that need to be renamed.
Example:
$var = functionOne($string);
CHANGE TO:
$var = functionTwo($string);
So essentially I would like to somehow have my text editor (dreamweaver) 'Find and Replace':
Find: functionOne
Replace: functionTwo
Easy enough... but do I really have to open all 100+ files within dreamweaver to do it all at once? Does anyone know any software out there that can scan entire folders at once and replace any text within the text documents? Any suggestions on a workflow for this is GREATLY appreciated. Thanks.
I have a web application that has about 100+ php files that include some function calls that need to be renamed.
Example:
$var = functionOne($string);
CHANGE TO:
$var = functionTwo($string);
So essentially I would like to somehow have my text editor (dreamweaver) 'Find and Replace':
Find: functionOne
Replace: functionTwo
Easy enough... but do I really have to open all 100+ files within dreamweaver to do it all at once? Does anyone know any software out there that can scan entire folders at once and replace any text within the text documents? Any suggestions on a workflow for this is GREATLY appreciated. Thanks.
-
Adrianc333
- Forum Newbie
- Posts: 14
- Joined: Sat Feb 17, 2007 5:44 am
- Location: South Yorkshire, UK
Alot of useful results.
http://www.google.co.uk/search?hl=en&q= ... arch&meta=
Though, couldn't you just edit the actions within your function?
http://www.google.co.uk/search?hl=en&q= ... arch&meta=
Though, couldn't you just edit the actions within your function?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Thanks for the tips guys.. but I think I need something a little more robust in a windows shell, that is easy to use for a dummy like me....
Anyone heard of "Actual Search & Replace"?
http://www.divlocsoft.com/
Anyone heard of "Actual Search & Replace"?
http://www.divlocsoft.com/
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Really? I tried it and it opens each individual file in Dreamweaver. Granted, it does perform the search and replace... but the whole "load each file into dreamweaver" is a bit excessive, especially for potentially 200+ files.wtf wrote:DW has do what you are asking. When you open "find+replace" make sure your "Find in" points to a directory or wherever the files are. This will do file+replace without having to open each single file.
you could write a shell script. or search for an exisiting shell script.seodevhead wrote:Thanks for the tips guys.. but I think I need something a little more robust in a windows shell, that is easy to use for a dummy like me....
Anyone heard of "Actual Search & Replace"?
http://www.divlocsoft.com/
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA