• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Simple text replacment accross many files

bigstusexy

2[H]4U
Joined
Jan 28, 2002
Messages
3,194
I need a program to replace text across many files.
You see I have a web site where I write things (supposed to write) things daily and when the week gets back to the start day I run a batch file to check for a backup run copy the html files to a direcotry with with the date and copy from templates to new html files ready for edition.

For size purposes I don't copy the images (they are static in the fact that I only use one set but I may point to different images on different days [they are mood indicators if you wanted to know])

I have Office 2000 and Open Office 1.0 I don't know if I can do this with them, I just want to search for img tags,might have to search by hand for speical cases, and change the relative path to location fo the files. I know I could have avoided this by using absolute paths but if I move my site to a second level domain or somewhere else I'd have a lot of work to do.

So... using thoes suites or any other program (free) how can I search and replace accross multiple files?

Oh I forgot to mention that I'd like this to be automated as in I set the search and replace parameters the directories i'd like it to work on (or files) and let it run I don't want to have to run it once per file or confirm between actions.
 
So... we're talking something like...

A weblog?


If you think about the problem a bit, dynamicly generating the pages from say... a database of posts... would probably make a lot more sense.
 
No its not a web blog More like a diary.

What is sed? I'm looking for something windows based as that is the platform I'm using
 
Thanks I'll look into it.
<shameless plug> I'm about to post another thread (yes completely different topic) look for it.</Shameless plug>
 
Belive it or not, Dreamweaver 4 has a nice Find and Replace feature that can scan an entire site and replace....
 
I found a program called smart editor it doens't do what I wanted, but it seems quite good and its free www.logicmatrixonline.com

But if you are reading this and like me need to replace text accross multiple files you can trey noteTab light that was posted in the warez to freeware thread in the general software section, its free and will replace text accross all open files, if you wish to replace inside files that aren't open you'll have to buy the standard version. www.notetab.com
 
Back
Top