MegaSack DRAW - This year's winner is user - rgwb
We will be in touch
Morning all..
Hoping the STW collective may be able to help me on this one..
I've got an html document (an email newsletter) that has to go through a translation server. It has some custom code that drives content within the html, that always gets corrupted by the translation server.
What I'd like to do is substitute the code for comments (that won't get affected by the translation process), then replace the code once it's back from translation.
However, as the document is translated into 24 languages, I'm loathe to search & replace comment by comment (there are about 20 pieces of custom code).
Does anyone know of any software that will search & replace 20 seperate terms at the same time within mutiple files?
Hope that's clear?
B
notepad++ will do find and replace in multiple files, can also use regex if you are man enough 🙂
search > find in files ... replace in files
I have software that will search & replace in multiple files, but I'll have to replace one string at a time. Ideally, I'd like something that can reference the 20 or so seperate terms I have to replace in each file and do them all at the same time if that makes sense?
grep sed awk with regex - combination of the above in a shell script should do ya.
Or a bit of perl if it's something you might need to do regularly?
Thanks Brass Neck. Perl might be the route forward I think.
Ben, have a look at [url= http://www.fauland.com/af9.htm ]THIS PLACE[/url] - AF Replace Some Bytes will replace multiple terms in multiple files and it's fast and free. Bleedin brilliant. 🙂
I used to use Homesite to do this; it's harder to find than the A-Team these days though.
Notepad++ is a good suggestion - good bit of kit, that.
(the correct solution, of course, is fix the damn translation server)
Sharkbait - that's exactly what I'm after. Brilliant, thanks.
Cougar - you are quite correct, if only twas that simple!
