OHHHH It never fucking ends!!!! Batch find & replace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spacedog
    Yes that IS me. Bitch.
    • Nov 2001
    • 14149

    #1

    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
    mmm yeah!
    • Feb 2005
    • 5061

    #2
    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.

    Comment

    • Malicious Biz
      So Fucking Banned
      • Mar 2005
      • 4575

      #3
      http://brinesoft.com/BatchTextReplacer.asp

      Comment

      • biftek
        So Fucking Banned
        • Jan 2005
        • 1030

        #4
        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

        Comment

        • spacedog
          Yes that IS me. Bitch.
          • Nov 2001
          • 14149

          #5
          Originally posted by Malicious Biz
          Thank you jesus

          Comment

          • woj
            <&(©¿©)&>
            • Jul 2002
            • 47880

            #6
            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

            Comment

            • spacedog
              Yes that IS me. Bitch.
              • Nov 2001
              • 14149

              #7
              Originally posted by Malicious Biz
              What a fucking beautiful little tool I can't believe how fast that was...

              Comment

              • chupachups
                Confirmed User
                • Dec 2002
                • 6576

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

                Comment

                • bjs24
                  Confirmed User
                  • May 2003
                  • 313

                  #9
                  Open Dreamweaver and hit ctrl + f

                  Comment

                  • xclusive
                    Too lazy to set a custom title
                    • Apr 2004
                    • 35218

                    #10
                    Dreamweaver does it just fine

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


                    Comment

                    • nico-t
                      emperor of my world
                      • Aug 2004
                      • 29901

                      #11
                      homesite does that too..

                      Comment

                      • spacedog
                        Yes that IS me. Bitch.
                        • Nov 2001
                        • 14149

                        #12
                        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.

                        Comment

                        • Scootermuze
                          Confirmed User
                          • Dec 2001
                          • 4513

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

                          Comment

                          • u-Bob
                            there's no $$$ in porn
                            • Jul 2005
                            • 33063

                            #14
                            ultraedit

                            Comment

                            • Theo The Theologian
                              Confirmed User
                              • Mar 2005
                              • 1099

                              #15
                              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.


                              I'm a hate-fuelled umbrella-wielding photographer with a winning smile, and a way with the ladies.

                              Comment

                              • biftek
                                So Fucking Banned
                                • Jan 2005
                                • 1030

                                #16
                                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

                                Comment

                                • Sosa
                                  In Tushy Land
                                  • Oct 2002
                                  • 40149

                                  #17
                                  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

                                  Comment

                                  • Dagwolf
                                    President of Canada
                                    • Sep 2003
                                    • 23141

                                    #18
                                    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.

                                    Comment

                                    • Miguel T
                                      ♦ Web Developer ♦
                                      • May 2005
                                      • 12470

                                      #19
                                      I was needing this aswell!!!

                                      Full Stack Webdeveloper: HTML5/CSS3, jQuery, AJAX, ElevatedX, NATS, MechBunny, Wordpress

                                      Comment

                                      • Quickdraw
                                        Confirmed User
                                        • Mar 2004
                                        • 1717

                                        #20
                                        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/

                                        Comment

                                        • Egomancer
                                          Confirmed User
                                          • Dec 2005
                                          • 2074

                                          #21
                                          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

                                          Comment

                                          • babsy
                                            Confirmed User
                                            • Mar 2006
                                            • 282

                                            #22
                                            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

                                            Comment

                                            • biftek
                                              So Fucking Banned
                                              • Jan 2005
                                              • 1030

                                              #23
                                              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

                                              Comment

                                              • SomeCreep
                                                :glugglug
                                                • Mar 2003
                                                • 26118

                                                #24
                                                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.

                                                Comment

                                                Working...