Anyone know of a HTML editing software that will batch-edit HTML files

aka1nas

Diamond Member
Aug 30, 2001
4,335
1
0
I am doing taking on a webpage for one of the departments at my university and it is really bloated. It is like 20MB and has like 650 files. Anyway, its nearly all HTML and while I will eventually redesign it to be easier to update, there is a lot of stuff that needs to fixed on it now. For example, they had a header that had the room number of their office, which was like 2 years out of date and needed to be changed. The problem is that they have this header on EVERY HTML document on the site(about 400+). It took me 4 hours to manually change the room number on each page. Is there a program that can batch-edit HTML code?
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Actually all you need is a "multi-file search and replace" function, preferably that can search sub-folders as well. I can't recommend anything specific (try Tucows.com ?) since I usually just use the MS Visual Studio IDE editor (which lacks the feature in VC++).
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
if you can access the files on unix machines, you can use find combined with sed command:
find . -type f -exec sed -e "s|old_room_number|new_room_number|g" {} \;

i think it's that -- i need a unix access (which i don't have) to try it out and see if i didn't mess up the "exec" part

if you are looking for one in dos/windows, i can't think of one right now ...
i'll post again if i know of something

-966-
 

Mitzi

Diamond Member
Aug 22, 2001
3,775
1
76
As DaveSimmons said, all you need is an editor which can do batch search and replace across files.

A text editor which has this facility is UltraEdit - it also has HTML syntax highlighting. Of course, Macromedia Dreamweaver also has this facility but its a pretty expensive option.
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
i believe HTMLKit will do it and its free. i think it does network batch edits too.