GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   OHHHH It never fucking ends!!!! Batch find & replace (https://gfy.com/showthread.php?t=613320)

spacedog 05-23-2006 04:32 PM

OHHHH It never fucking ends!!!! Batch find & replace
 
I need a quick fix..

I got 50+ pages I want to modify. I am sick of opening each page separately via dreamweaver & editing them, over & over.. fucking time consuming damn it.. Anyway, I need a batch find & replace.. Is there a program I can dump all the html pages into a folder & have the program find & replace the selected code for al the pages instead of having to do it individually..

dynastoned 05-23-2006 04:33 PM

Quote:

Originally Posted by spacedog
I need a quick fix..

I got 50+ pages I want to modify. I am sick of opening each page separately via dreamweaver & editing them, over & over.. fucking time consuming damn it.. Anyway, I need a batch find & replace.. Is there a program I can dump all the html pages into a folder & have the program find & replace the selected code for al the pages instead of having to do it individually..

bump for that i would like to know also.

Malicious Biz 05-23-2006 04:34 PM

http://brinesoft.com/BatchTextReplacer.asp :thumbsup :thumbsup

biftek 05-23-2006 04:35 PM

dreamweaver can do it
goto find , then you will see a drop down menu at the top of the find window
it will be labeld with "find in " in the drop the down menu beside you can choose "folder"

or there is a program called , html search and replace , google it

spacedog 05-23-2006 04:37 PM

Quote:

Originally Posted by Malicious Biz

Thank you jesus :thumbsup :thumbsup

woj 05-23-2006 04:38 PM

Quote:

Originally Posted by biftek
dreamweaver can do it
goto find , then you will see a drop down menu at the top of the find window
it will be labeld with "find in " in the drop the down menu beside you can choose "folder"

or there is a program called , html search and replace , google it

:thumbsup

spacedog 05-23-2006 04:57 PM

Quote:

Originally Posted by Malicious Biz

What a fucking beautiful little tool :) I can't believe how fast that was...

chupachups 05-23-2006 05:38 PM

Jesus Spacedog, I would have died fast if I had to do that. Check out ultraedit aswell - works like a charm.

bjs24 05-23-2006 05:40 PM

Open Dreamweaver and hit ctrl + f

xclusive 05-23-2006 05:48 PM

Dreamweaver does it just fine

nico-t 05-23-2006 05:52 PM

homesite does that too..

spacedog 05-23-2006 06:29 PM

Quote:

Originally Posted by xclusive
Dreamweaver does it just fine

but only as a site, I'm talking about separate pages that were saved as individual sites, all in separate directories on my harddrive,, Anyway, it's all finished now because the above program i selected My documents as the source folder & bam it was done in a matter of 2 minutes or so.

Scootermuze 05-23-2006 06:33 PM

I've used this one for a few years.. works great.. Super simple..

u-Bob 05-23-2006 06:42 PM

ultraedit :)

Theo The Theologian 05-23-2006 06:44 PM

Quote:

Originally Posted by spacedog
I need a quick fix..

I got 50+ pages I want to modify. I am sick of opening each page separately via dreamweaver & editing them, over & over.. fucking time consuming damn it.. Anyway, I need a batch find & replace.. Is there a program I can dump all the html pages into a folder & have the program find & replace the selected code for al the pages instead of having to do it individually..


Are you serious Brother? Dreamweaver does it LOL so does home site which I believe comes packaged with dreamweaver now. Do extended find, and replace. It will give an option for directory, sub directory, file types to search, etc.

biftek 05-23-2006 10:25 PM

Quote:

Originally Posted by spacedog
but only as a site, I'm talking about separate pages that were saved as individual sites, all in separate directories on my harddrive,, Anyway, it's all finished now because the above program i selected My documents as the source folder & bam it was done in a matter of 2 minutes or so.


dreamweaver mx , can do it , but the sites need to be in the same dir/folder

Sosa 05-23-2006 10:36 PM

heh try editing 1000+ html pages chaning out some linking code that is different for every 10 pages. talk abotu time consuming. I should get a php script to do it

Dagwolf 05-23-2006 10:42 PM

Quote:

Originally Posted by Sosa
heh try editing 1000+ html pages chaning out some linking code that is different for every 10 pages. talk abotu time consuming. I should get a php script to do it

Sounds pretty rough. If you do it often at all it'd be worthwhile.

Miguel T 05-23-2006 10:43 PM

I was needing this aswell!!!

Quickdraw 05-23-2006 10:49 PM

Quote:

Originally Posted by Sosa
heh try editing 1000+ html pages chaning out some linking code that is different for every 10 pages. talk abotu time consuming. I should get a php script to do it

In Dreamweaver? I posted this a while back-- I had the same problem-- Just have to

After spending some time trying to figure out how to get rid of sponsor links in a fast way across an entire 'static' site, I (finally) discovered Dreamweaver can successfully use Regular Expressions to find the list of everchanging styles of links, whether they be banners or different text.

Check the regular expressions box in the 'Search for' panel
This goes in the 'Search For' box when finding within your source code option.
Code:

<a(.*?)(SOMETHING_IN_URL_UNIQUE_LIKE_YOUR_AFF_ID)(.*?)">(.*?\s*?.*?)</a>
If you want to save some of the data just use $1, $2, $3, respectively for each set of parentheses. If you wanted to keep the linking text(or image) you would use $4 somewhere within your 'Replace With' box. Of course if you are using banners using $4 will just leaved an unlinked sponsor banner.

Anyway, I know it's nothing special, but might save someone some time.
Oh, and if you use Dreamweaver this url might come in handy before your next crash.
http://mm-exporter.joexx.de/

Egomancer 05-23-2006 11:01 PM

ok

Egomancer

babsy 05-23-2006 11:34 PM

perl -p -i -e 's/old/new/g' `find ./ -name filename`

or

perl -p -i -e 's/old/new/g' `grep -ril stringinfile *`

biftek 05-24-2006 11:44 PM

i wanted to get rid of a chunk of data that changed every several pages
looked at the regular expression stuff , but then found this program called
HTML Batch Editor by Lucersoft.com

as long as the start and end of the data is the same you can batch delete the data from all your pages
eg: delete banners , in your source code if you have <---banner---> then your banner data , then <--end banner-->
you just tell html batch editor to start at <---banner---> and end at <--end banner-->
then you tell it the files/folder you want , it will then go ahead and delete everything that lays between those two points

SomeCreep 05-24-2006 11:50 PM

Quote:

Originally Posted by babsy
perl -p -i -e 's/old/new/g' `find ./ -name filename`

or

perl -p -i -e 's/old/new/g' `grep -ril stringinfile *`

mmmmmmmm, "-p -i -e"


All times are GMT -7. The time now is 05:30 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123