View Full Version : Mass-Replacing HTML tags?
ThaKiller
06-26-2001, 11:38 AM
I need your help again http://bbs.adultwebmasterinfo.com/ubb/smile.gif
I`m searching for a tool which can open all html files in one directory, search for a specific string and replace it in ALL of the pages in the directory..
I`m moving some scripts so I would need to manually edit like 300 files which is a .. waste of time http://bbs.adultwebmasterinfo.com/ubb/wink.gif
I really think there must be such a tool.
thanks in advance!
I think homesite can do that: http://www.allaire.com
wired1
06-26-2001, 11:59 AM
Fuck I forgot my password! Im a very little jerk again, anyway - this might work,
its a program called BK ReplaceEm
http://www.orbit.org/replace/
e-van
06-26-2001, 12:00 PM
I used to have that problem, dreamweaver site manager can do that for you in a few seconds,
Ludedude
06-26-2001, 12:05 PM
You can use a freeware program called Multi-replace or Max's HTML Beauty which is an html editing program, also free.
http://www.ultraedit.com/ has powerful replace options
eXtremal
06-26-2001, 01:32 PM
On any Unix machine, you can do it using this simple line http://bbs.adultwebmasterinfo.com/ubb/smile.gif
for x in `find ./ -name "*html" -type f`; do sed s/oldstring/newstring/g $x > "$x.1"; mv "$x.1" "$x"; done
GUI SUX http://bbs.adultwebmasterinfo.com/ubb/smile.gif
ThaKiller
06-26-2001, 02:52 PM
<font face="Verdana, Arial" size="2">Originally posted by eXtremal:
On any Unix machine, you can do it using this simple line http://bbs.adultwebmasterinfo.com/ubb/smile.gif
for x in `find ./ -name "*html" -type f`; do sed s/oldstring/newstring/g $x > "$x.1"; mv "$x.1" "$x"; done
GUI SUX http://bbs.adultwebmasterinfo.com/ubb/smile.gif
</font>
LOL
You unix heads make my life a bit funnier.
I`m happy when I can start our server and log in without crashing the whole system.. http://bbs.adultwebmasterinfo.com/ubb/wink.gif
That wouldnt have happened without windows, I remember when I knew like 12,000 different dos commands to give out the current directory http://bbs.adultwebmasterinfo.com/ubb/smile.gif
anyway, thanks for all replies..
I looked it up in my ultraedit but it didnt work for some reason. wired found a nice little prog there which really did everything I needed.
thank you all, as soon as I have another stupid question I wont bother to post it here http://bbs.adultwebmasterinfo.com/ubb/wink.gif
Hoi!! try this for free, i replace 400 in 10sec
Ace.html4 freeware
http://download.visicommedia.com/en/index.cfm
I really think there must be such a tool.
thanks in advance![/B][/QUOTE]
Replace IT is a most advanced mass replacer.
works folders and subfolders, creates backup,
had an option to replace witrh start and enf of string
it is part of the adult webmaster softare family
dada
http://www.adultwebmastersoftware.com
In ultraedit, go to advanced > configuration > configuration, then click on the tab bar "find", then you can use the ultraedit search/replace functions which are supberb, with wildcards and regular expressions such as
^p*/
^p
That would mean remove everything from the beginning of each line up to the first slash.
* means all characters in between, + means 1 character etc. ^p is line break. You can do that in one file, in all open files or in all files in a given directory with/without subdirectories, and there only in files with a given extension or in all files. You also can higlight multiple files and open them at once, save and close all files at once etc..
Did I mention that it needs about 1 second to replace stuff in several hundred files, opposed to i.e. frontpage which needs about a minute, let alone that it couldn't do a lot. I already replaced up to 20,000 files and it took about 10-15 seconds.
typo..
"advanced > configuration > configuration" = "advanced > configuration"
arghh forgot to say
after you clicked the tab "find" you need to uncheck "unix style regular expressions" then you can use all the good ultraedit stuff as given in the help file
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.