Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-23-2006, 04:32 PM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
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..
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 04:33 PM   #2
dynastoned
mmm yeah!
 
Industry Role:
Join Date: Feb 2005
Location: roseville, ca
Posts: 5,061
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.
dynastoned is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 04:34 PM   #3
Malicious Biz
So Fucking Banned
 
Join Date: Mar 2005
Location: Put Shoe On Head Plz
Posts: 4,575
http://brinesoft.com/BatchTextReplacer.asp
Malicious Biz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 04:35 PM   #4
biftek
So Fucking Banned
 
Join Date: Jan 2005
Location: Victoria, Australia
Posts: 1,030
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
biftek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 04:37 PM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by Malicious Biz
Thank you jesus
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 04:38 PM   #6
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 04:57 PM   #7
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by Malicious Biz
What a fucking beautiful little tool I can't believe how fast that was...
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 05:38 PM   #8
chupachups
Confirmed User
 
chupachups's Avatar
 
Join Date: Dec 2002
Location: Sweden/Spain you sum bitch!
Posts: 6,576
Jesus Spacedog, I would have died fast if I had to do that. Check out ultraedit aswell - works like a charm.
__________________
chupachups is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 05:40 PM   #9
bjs24
Confirmed User
 
Join Date: May 2003
Location: I Moderate You
Posts: 313
Open Dreamweaver and hit ctrl + f
bjs24 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 05:48 PM   #10
xclusive
Too lazy to set a custom title
 
Join Date: Apr 2004
Location: Buffalo, NY
Posts: 35,218
Dreamweaver does it just fine
__________________

I support MediumPimpin.com / Shemp's Outlawtgp.com /


xclusive is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 05:52 PM   #11
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
homesite does that too..
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 06:29 PM   #12
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
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.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 06:33 PM   #13
Scootermuze
Confirmed User
 
Join Date: Dec 2001
Posts: 4,513
I've used this one for a few years.. works great.. Super simple..
Scootermuze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 06:42 PM   #14
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
ultraedit
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 06:44 PM   #15
Theo The Theologian
Confirmed User
 
Theo The Theologian's Avatar
 
Join Date: Mar 2005
Posts: 1,099
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.
Theo The Theologian is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 10:25 PM   #16
biftek
So Fucking Banned
 
Join Date: Jan 2005
Location: Victoria, Australia
Posts: 1,030
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
biftek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 10:36 PM   #17
Sosa
In Tushy Land
 
Sosa's Avatar
 
Join Date: Oct 2002
Location: Nebraska
Posts: 40,149
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
Sosa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 10:42 PM   #18
Dagwolf
President of Canada
 
Dagwolf's Avatar
 
Join Date: Sep 2003
Location: Leaving Hell, Entering Limbo
Posts: 23,141
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.
__________________
Sleep well, and dream of large women.

Dagwolf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 10:43 PM   #19
Miguel T
♦ Web Developer ♦
 
Miguel T's Avatar
 
Industry Role:
Join Date: May 2005
Location: Full-Stack Developer
Posts: 12,472
I was needing this aswell!!!
__________________

Full Stack Webdeveloper: HTML5/CSS3, jQuery, AJAX, ElevatedX, NATS, MechBunny, Wordpress
Miguel T is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 10:49 PM   #20
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
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/
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 11:01 PM   #21
Egomancer
Confirmed User
 
Join Date: Dec 2005
Location: Bucharest, Romania
Posts: 2,074
ok

Egomancer
__________________
ICQ: 95-239-282
WWW: www.webprogrammers.eu
WWW:www.seodev.eu
Y!MSN: lord_ender

If you want to outsource any work to Romania - here I am !!!!

www.anotheranime.com | www.autotrafic.ro | www.jocurionline.ro
Egomancer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-23-2006, 11:34 PM   #22
babsy
Confirmed User
 
Join Date: Mar 2006
Location: Cashapartment.com
Posts: 282
perl -p -i -e 's/old/new/g' `find ./ -name filename`

or

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

CASH APARTMENT V2 IS HERE!
NATS POWERED, 60-70% ON ALL REBILLS, FREE CONTENT, MGPS, FHGS, RETAINING MEMBERS NETWORK!
A SIMPLE NO B.S PROGRAM - ICQ 239 806 698
babsy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2006, 11:44 PM   #23
biftek
So Fucking Banned
 
Join Date: Jan 2005
Location: Victoria, Australia
Posts: 1,030
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
biftek is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-24-2006, 11:50 PM   #24
SomeCreep
:glugglug
 
SomeCreep's Avatar
 
Join Date: Mar 2003
Location: Where the Wild Things Are
Posts: 26,118
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"
__________________

Webair Hosting

I use and recommend Webair for hosting.
SomeCreep is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.