I've got a site of about 300 pages that I built before I knew much about server side includes, etc. Now, I want to change one aspect of every page that's the same on all 300 pages (the top part with the logo, etc). Is there some tool I can use to do this - or do I just need to bit the bullet and edit all 300 pages one by one. Thanks in advance for any suggestions.
If it's a linux/unix server, and you can get to the shell, you could probably use a string of command line tools to go through and modify each file. This might be a good time to make the pages dynamic though, so you can avoid it in the long run. I can't think of commands off the top of my head to do what you want, but I could probably look it up. I'd think it would be some combination of a for loop, and awk, sed, cut or something like that.. depending on what you want to do. =) Or you could do it with a php script, open the files one by one, make the change, close it, move on. Bash or php, doesn't really matter.
http://www.unix.com/archive/index.php/t-7629.html There are some examples here of find and replace in multiple files. I would be very careful though, you don't want to mass mess up all your files at once. =) I'd try it a few times on a test set of data before you do it on all 300 files.
Thanks so much to everyone for all of your help! I amazed - 5 very helpful answers in less than an hour. I settled on using Actual S&R. It seems easy to use and powerful.
I have a script in perl that will change everything what you want in one moment. PM me and I will send you a script.