Find & Replace Tool?

Status
Not open for further replies.

wickedDUDE

New member
Jun 25, 2006
1,054
12
0
Is there a good, free, find and replace tool that I can use to replace multiple files at once?
 


Well, I have a bunch of files that I want to find and replace stuff in:

I have maybe 20-30 php files that have many image files names like "images/whatever.gif" I want to replace that with "/images/whatever.gif" without having to go in and change each one manually.. simply because there are hundreds.
 
I have maybe 20-30 php files that have many image files names like "images/whatever.gif" I want to replace that with "/images/whatever.gif" without having to go in and change each one manually.. simply because there are hundreds.
yeh I know what you mean
I use notepad++
it has tabs so it's really easy to do it
I open all 30 or 50 files and do 'search and replace in every open document'

are you getting mod_rewrite to work or something?
 
Seriously. Sed is your friend.


Code:
for /f %i in ('dir /b *.php') do sed -e "s/oldvalue/newvalue/" %i > .\new\%i.php"
 
Well, I have a bunch of files that I want to find and replace stuff in:

I have maybe 20-30 php files that have many image files names like "images/whatever.gif" I want to replace that with "/images/whatever.gif" without having to go in and change each one manually.. simply because there are hundreds.

there you go Tucows Downloads - Simpli-File Find, Replace and Insert 1.40 Freeware Software
it works exactly like you described, best one I know and you can input tons of text in one go, eg: sticking images on top of adsense ads on a site that uses no includes.
If you get probs with it at first, it's to do with checking the right boxes, any probs let me know i'll send screenshot of mine. Forgot to say that this will load a whole folder of a quadrillion files and do them all at once.
 
Download Notepad++, open the file in Notepad++ and use the find/replace tool. Or were you looking for something more... "batchish".
 
Status
Not open for further replies.