Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. App...

App...

Scheduled Pinned Locked Moved The Lounge
question
16 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Brian Delahunty

    ... Anybody know of a free [and good] app for doing multiple find/replace's on multiple files? I can't seem to find any decent one but I'm probably not looking in teh right places. Regards, Brian Dela :-)

    K Offline
    K Offline
    KaRl
    wrote on last edited by
    #4

    I've found years ago a shell extension which did this. I can't remember its name (perhaps this one :~ ), but it was at http://www.freewarehome.com[^]


    We do not inherit the Earth from our ancestors, we borrow it from our children - Antoine de Saint-Exupéry (1900-1944)

    1 Reply Last reply
    0
    • B Brian Delahunty

      ... Anybody know of a free [and good] app for doing multiple find/replace's on multiple files? I can't seem to find any decent one but I'm probably not looking in teh right places. Regards, Brian Dela :-)

      S Offline
      S Offline
      sorenb
      wrote on last edited by
      #5

      Using an "application" to do find and replace on multiple files sound like overkill to me. Lets say you're running Windows... 1.) Create a batch file along the lines of: [foreach.bat] @echo off for %%v in (%1) do %2 %%v [/foreach.bat] 2.) Install PERL. Create another batch file along the lines of: [replace.bat] perl -i.bk -pe"s/I want to replace this/with this/" %1 [/replace.bat] Assuming above files are in your PATH you can just do: C:\>foreach *.jsp replace.bat from anywhere. You can always just edit "replace.bat" to suit your needs at any particular point in time and you have access to PERL powerful regex-functionality. Rgds, Soren

      B A 2 Replies Last reply
      0
      • S sorenb

        Using an "application" to do find and replace on multiple files sound like overkill to me. Lets say you're running Windows... 1.) Create a batch file along the lines of: [foreach.bat] @echo off for %%v in (%1) do %2 %%v [/foreach.bat] 2.) Install PERL. Create another batch file along the lines of: [replace.bat] perl -i.bk -pe"s/I want to replace this/with this/" %1 [/replace.bat] Assuming above files are in your PATH you can just do: C:\>foreach *.jsp replace.bat from anywhere. You can always just edit "replace.bat" to suit your needs at any particular point in time and you have access to PERL powerful regex-functionality. Rgds, Soren

        B Offline
        B Offline
        Brian Delahunty
        wrote on last edited by
        #6

        Ok... an app to do it is overkill but installing perl isn't??? :wtf: :confused: Regards, Brian Dela :-)

        1 Reply Last reply
        0
        • D Daniel Turini

          UltraEdit, VS.NET... ORACLE One Real A$#h%le Called Lary Ellison

          B Offline
          B Offline
          Brian Delahunty
          wrote on last edited by
          #7

          You need to open the files with both of these though. Regards, Brian Dela :-)

          L A 2 Replies Last reply
          0
          • S sorenb

            Using an "application" to do find and replace on multiple files sound like overkill to me. Lets say you're running Windows... 1.) Create a batch file along the lines of: [foreach.bat] @echo off for %%v in (%1) do %2 %%v [/foreach.bat] 2.) Install PERL. Create another batch file along the lines of: [replace.bat] perl -i.bk -pe"s/I want to replace this/with this/" %1 [/replace.bat] Assuming above files are in your PATH you can just do: C:\>foreach *.jsp replace.bat from anywhere. You can always just edit "replace.bat" to suit your needs at any particular point in time and you have access to PERL powerful regex-functionality. Rgds, Soren

            A Offline
            A Offline
            Anders Molin
            wrote on last edited by
            #8

            sorenb wrote: Using an "application" to do find and replace on multiple files sound like overkill to me. Installing perl just to do it sounds like overkill to me. - Anders Money talks, but all mine ever says is "Goodbye!"

            S 1 Reply Last reply
            0
            • B Brian Delahunty

              You need to open the files with both of these though. Regards, Brian Dela :-)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #9

              ??? UltraEdit has a Find/Replace-in-files option that doesn't require the files to be open...


              When I am king, you will be first against the wall.

              B 1 Reply Last reply
              0
              • B Brian Delahunty

                You need to open the files with both of these though. Regards, Brian Dela :-)

                A Offline
                A Offline
                Anders Molin
                wrote on last edited by
                #10

                Not with VS.NET :P - Anders Money talks, but all mine ever says is "Goodbye!"

                B 1 Reply Last reply
                0
                • A Anders Molin

                  sorenb wrote: Using an "application" to do find and replace on multiple files sound like overkill to me. Installing perl just to do it sounds like overkill to me. - Anders Money talks, but all mine ever says is "Goodbye!"

                  S Offline
                  S Offline
                  sorenb
                  wrote on last edited by
                  #11

                  An arguable point, I'll grant you that. That is: if you only do this kind of thing once a month. :-)

                  1 Reply Last reply
                  0
                  • A Anders Molin

                    Not with VS.NET :P - Anders Money talks, but all mine ever says is "Goodbye!"

                    B Offline
                    B Offline
                    Brian Delahunty
                    wrote on last edited by
                    #12

                    Yes.. Duh Brian. Thanks :-D Regards, Brian Dela :-)

                    1 Reply Last reply
                    0
                    • L Lost User

                      ??? UltraEdit has a Find/Replace-in-files option that doesn't require the files to be open...


                      When I am king, you will be first against the wall.

                      B Offline
                      B Offline
                      Brian Delahunty
                      wrote on last edited by
                      #13

                      I haven't used UltraEdit in a while so I didn't know that. I never saw that feature when I was using it. Thanks for the info though. Regards, Brian Dela :-)

                      1 Reply Last reply
                      0
                      • B Brian Delahunty

                        ... Anybody know of a free [and good] app for doing multiple find/replace's on multiple files? I can't seem to find any decent one but I'm probably not looking in teh right places. Regards, Brian Dela :-)

                        J Offline
                        J Offline
                        J Dunlap
                        wrote on last edited by
                        #14

                        Search and Replace 98[^]. :)

                        "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
                        "You must be the change you wish to see in the world." - Mahatma Gandhi

                        B 1 Reply Last reply
                        0
                        • B Brian Delahunty

                          ... Anybody know of a free [and good] app for doing multiple find/replace's on multiple files? I can't seem to find any decent one but I'm probably not looking in teh right places. Regards, Brian Dela :-)

                          H Offline
                          H Offline
                          Hans Dietrich
                          wrote on last edited by
                          #15

                          A friend swears by ReplaceEm.

                          1 Reply Last reply
                          0
                          • J J Dunlap

                            Search and Replace 98[^]. :)

                            "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
                            "You must be the change you wish to see in the world." - Mahatma Gandhi

                            B Offline
                            B Offline
                            Brian Delahunty
                            wrote on last edited by
                            #16

                            Thanks. Exactly what I was looking for :-D Regards, Brian Dela :-)

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups