F@#$! Please help I made a mistake - find and replace across a set of files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfy
    Confirmed User
    • Dec 2003
    • 3574

    #1

    F@#$! Please help I made a mistake - find and replace across a set of files

    How do I do that? the files are .html, and I made the same mistake on all of them- - ALLLLLLLLLLLLLL OF THEM!!!!!! Can I do a "find and replace" across the whole batch of files? How?!
  • Jace
    FBOP Class Of 2013
    • Jan 2004
    • 35562

    #2
    homesite has a NICE find and replace function

    Comment

    • NaughtyRob
      Two fresh affiliate progs
      • Nov 2004
      • 29602

      #3
      Its very easy. Do you use Dreamweaver?
      [email protected]
      Skype: 17026955414
      Vacares Web Hosting - Protect Your Ass with Included Daily Backups

      Comment

      • Jon2
        So Fucking Banned
        • Aug 2001
        • 2875

        #4
        http://downloads-zdnet.com.com/Simpl...ml?tag=lst-0-1

        5 day trial

        Jon

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          http://www.sausagehosting.com/multi-...d-replace.html

          ?? might work
          hatisblack at yahoo.com

          Comment

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

            #6
            what program do you use?

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


            Comment

            • MickeyG
              Confirmed User
              • May 2004
              • 4134

              #7
              Best Search and replace on the planet. Lets you replace paragraphs of text at a time.

              http://www.serpik.com/htmlsr/

              your welcome.

              Comment

              • Wolfy
                Confirmed User
                • Dec 2003
                • 3574

                #8
                I have most programs, using DW at the moment.

                Comment

                • Wolfy
                  Confirmed User
                  • Dec 2003
                  • 3574

                  #9
                  Originally posted by ContentProducer
                  Its very easy. Do you use Dreamweaver?

                  Yes, how do you do it please?

                  Comment

                  • Webby
                    Too lazy to set a custom title
                    • Oct 2002
                    • 14956

                    #10
                    Depending.. you may want to also have a look at either..

                    (a) Search And Replace
                    (b) CodeSwitcher
                    XXX TLD's - Another mosquito to swat.

                    Comment

                    • Wolfy
                      Confirmed User
                      • Dec 2003
                      • 3574

                      #11
                      Basically - I have a folder with about 200 pages I just finished editing, and I screwed something up in the process - so I need to search and replace across the whole folder in every .html file. How do I do this in DW?

                      Comment

                      • NaughtyRob
                        Two fresh affiliate progs
                        • Nov 2004
                        • 29602

                        #12
                        Originally posted by Wolfy
                        Basically - I have a folder with about 200 pages I just finished editing, and I screwed something up in the process - so I need to search and replace across the whole folder in every .html file. How do I do this in DW?
                        Oh shit, I have only done it on one page. Someone else will need to tell you how to do a whole folder.

                        [email protected]
                        Skype: 17026955414
                        Vacares Web Hosting - Protect Your Ass with Included Daily Backups

                        Comment

                        • Wolfy
                          Confirmed User
                          • Dec 2003
                          • 3574

                          #13
                          yeah I have a knack for screwing things up beyond most people's normal range of comprehension :P

                          Comment

                          • SmokeyTheBear
                            ►SouthOfHeaven
                            • Jun 2004
                            • 28609

                            #14
                            Originally posted by SmokeyTheBear

                            Try this , i just used it to do exactly what you need done.

                            Its a demo , but it works fine..

                            Replaced link text on 500 pages
                            hatisblack at yahoo.com

                            Comment

                            • pornguy
                              Too lazy to set a custom title
                              • Mar 2003
                              • 62910

                              #15
                              DW is probably the best bet if you made them there.
                              PornGuy skype me pornguy_epic

                              AmateurDough The Hottes Shemales online!
                              TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

                              Comment

                              • mortenb
                                Confirmed User
                                • Jul 2004
                                • 2203

                                #16
                                Tom from Tomsnewbiebooster made a nice little tutorial on how to do batch replacements.. http://www.tomsnewbiebooster.com/sr-win-tutorial.html

                                Comment

                                • Paco, of Large Cash.
                                  Confirmed User
                                  • Jun 2002
                                  • 2267

                                  #17
                                  1). Open one of the documents which resides in the folder with all the others.
                                  2). Click EDIT>FIND AND REPLACE, or simply CTRL-F.
                                  3). FIND IN: Folder - click on the folder (once you have opened the folder simply click SELECT.
                                  4). SEARCH FOR TEXT: enter the EXACT text (include spaces if need be).
                                  5). Pick INSIDE TAG or NOT INSIDE TAG -- Also, from the next pull down, pick the ANY TAG option.
                                  6). REPLACE WITH: enter the new text.
                                  7). pick your options (I always use MATCH CASE!)
                                  For the next step I use FIND ALL, not REPLACE ALL so I can verify the files.
                                  all done.

                                  Comment

                                  • Jace
                                    FBOP Class Of 2013
                                    • Jan 2004
                                    • 35562

                                    #18
                                    open them all up in homesite, click search and replace...enter the before text, then the after text....then hit go

                                    Comment

                                    • Antonio
                                      Too lazy to set a custom title
                                      • Oct 2001
                                      • 14136

                                      #19
                                      by far the best tool ever:



                                      let me know if you're not fixed I'll upload it for you

                                      Comment

                                      • Antonio
                                        Too lazy to set a custom title
                                        • Oct 2001
                                        • 14136

                                        #20
                                        btw it does not reqire installation
                                        you just copy 5-6 tiny files into your folder and you're done (170 kb total - just checked)

                                        Comment

                                        • Wolfy
                                          Confirmed User
                                          • Dec 2003
                                          • 3574

                                          #21
                                          Ok, I tried that srwin program, that does the job fairly well. Only problem is I can only do one line at a time... How about this.

                                          What do you guys use to do the same type of work, go through a whole folder full of html files, but add (for instance) meta tags to the whole batch?

                                          Comment

                                          • Rorschach
                                            So Fucking Banned
                                            • Aug 2002
                                            • 5579

                                            #22
                                            $ man sed

                                            Comment

                                            • Wolfy
                                              Confirmed User
                                              • Dec 2003
                                              • 3574

                                              #23
                                              ex: if I want to take this part of the files (a.html, b.html, c.html, d.html, etc) -
                                              <html>
                                              <head>
                                              <title>some page</title>


                                              and replace it with
                                              <html>
                                              <head>
                                              <title>some page</title>
                                              <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
                                              <meta name="generator" content="vBulletin 3.0.3" />
                                              <meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft,bu lletin board" />

                                              or whatever happens to be going there, of course.

                                              How do you do that? Do any of the programs alre3ady mentioned do that?
                                              Last edited by Wolfy; 01-03-2005, 03:40 PM.

                                              Comment

                                              • Top Jimmy
                                                Confirmed User
                                                • Dec 2004
                                                • 2513

                                                #24
                                                Originally posted by Wolfy
                                                Ok, I tried that srwin program, that does the job fairly well. Only problem is I can only do one line at a time... How about this.

                                                What do you guys use to do the same type of work, go through a whole folder full of html files, but add (for instance) meta tags to the whole batch?

                                                Homesite. extended find and replace. Just highlight what you need to replace, it will put it all in the top box cr's and everything.

                                                In the bottom box put what you want to replace it with. Click html files and do sub dirs, select the main dir and hit go. Just don't fuck up a second time or yer really fucked.

                                                Don't reply. Let it die.

                                                Comment

                                                • MickeyG
                                                  Confirmed User
                                                  • May 2004
                                                  • 4134

                                                  #25
                                                  Originally posted by Wolfy
                                                  Ok, I tried that srwin program, that does the job fairly well. Only problem is I can only do one line at a time... How about this.

                                                  What do you guys use to do the same type of work, go through a whole folder full of html files, but add (for instance) meta tags to the whole batch?
                                                  check out my post wayy above. I already posted the software you need. It will let you replace blocks of text within subfolders and will fix your problem 100%

                                                  Comment

                                                  • Top Jimmy
                                                    Confirmed User
                                                    • Dec 2004
                                                    • 2513

                                                    #26
                                                    Macromedia bought homesite, and incorporated homesites extended into DW.

                                                    It should work the same. all the options are on the side. Not sure I ain't lookin' at it.

                                                    Good luck

                                                    Don't reply. Let it die.

                                                    Comment

                                                    • Sosa
                                                      In Tushy Land
                                                      • Oct 2002
                                                      • 40149

                                                      #27
                                                      hey guys I have a simliar problem... I have a lot of lines of code I need to replace on about 90 pages. But they are in each of their own sub directories. Who got a program do do search/replace of HTML code and look through subdirectories for .html files.

                                                      Comment

                                                      • Sosa
                                                        In Tushy Land
                                                        • Oct 2002
                                                        • 40149

                                                        #28
                                                        bump bump bump

                                                        Comment

                                                        • killshot
                                                          Confirmed User
                                                          • Dec 2004
                                                          • 456

                                                          #29
                                                          my admin did find and replace on about 10,000 files on my server in just a couple minutes... some little command you can do in linux

                                                          I have no idea how he did it though..

                                                          Comment

                                                          • Webby
                                                            Too lazy to set a custom title
                                                            • Oct 2002
                                                            • 14956

                                                            #30
                                                            Sosa:

                                                            hey guys I have a simliar problem... I have a lot of lines of code I need to replace on about 90 pages. But they are in each of their own sub directories. Who got a program do do search/replace of HTML code and look through subdirectories for .html files.
                                                            CodeSwitcher.

                                                            On the condition that.... the code to be replaced on the 90 pages is unique and not contained within any other pages of these directories.
                                                            XXX TLD's - Another mosquito to swat.

                                                            Comment

                                                            • AndrewKanuck
                                                              Confirmed User
                                                              • Jan 2004
                                                              • 6706

                                                              #31
                                                              Get to know sed and awk.

                                                              Comment

                                                              Working...