...

View Full Version : Recommend a good find/replace tool?



jeddi
08-21-2006, 11:39 AM
Not sure if this belongs in this section...

I have about 100 php files in my site and I want to update all the
places where I use: strip_tags(trim(
with sql_safe(trim(
so that my safer fuction can be used everywhere.

I don't use dreamweaver so I was thinking - is there a tool that can do a find and replace on all the files in one directory ?

I am sure most developers need this - so I guess there is a tool somewhere ?

Anyone know where I can find one - preferably free :)

Thanks

ken_shoti
08-21-2006, 12:10 PM
try finding some find and replace tool for this...
i tried to use html search and replace
you can try it for free.

Kravvitz
08-21-2006, 06:31 PM
Try jReplaceThem. (http://www.sharewareplaza.com/JReplaceThem-download_5048.html)

rmedek
08-21-2006, 10:50 PM
A decent text editor will do the job… I use "find in project…" a bunch in TextMate.

Mike Good
08-21-2006, 11:12 PM
Use Notepad+. That's what I use.

Beagle
08-22-2006, 03:56 PM
use sed

jeddi
08-23-2006, 11:12 AM
Thanks for your replies.

What is sed ?

I tried to download jReplaceThem.
from the link but the downloads links took me to

Welcome to pokw.com which contained pages of stuff - couldn't find
the jReplaceThem.

Kravvitz
08-23-2006, 11:05 PM
Try this link: http://javaboutique.internet.com/JReplaceThem/

Beagle
08-24-2006, 03:20 PM
sed is the GNU stream editor tool. It allows you to manipulate ascii streams. Super powerful once you figure it out. The most common use is to apply regular expressions to every filename that matches a pattern in one simple shell command:

sed -i -e {s/someIncludeFileName.php/newIncludeFile.php/g} *.php

Now come on. How can any GUI tool compete with that!

harbingerOTV
08-25-2006, 02:00 AM
I have a tag-a-long question with this.

Anybody know of a program that can find and replace randomly? What Im talking about is some that does this:

Find
apple

replace with
peach
watermelon
orange
cherry

where when it replace the word apple it would either randomly insert one of the other 4 fruits or even just go down the list and repeat the process.

Beagle
08-28-2006, 03:55 PM
no program, but you can write your own script for it, in any number of environments. You could use perl, or bash, or csh, or php. You could even write your own utility and compile it and distribute it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum