Search and Replace over multiple files without opening them

Search and Replace over multiple files without opening them

2
NewbieNewbie
2

    Apr 26, 2005#1

    Hi,
    I'm interested in this product, but I would like to know if it allows me to search and replace over multiple files without opening them. I tell it what directory to look at, and it will do the search and replace recursively (for subdirectories if needbe)

    Basically, I'm looking for functionality that acts like Homesite's search and replace. Does UltraEdit do this?

    From searching these forums, I get the impression that this is not possible. From what I understand, I have to create a macro with one file, save the macro, open up batches of files, and then run this macro over the open files. This isn't really what I want.

    Thank you for reading.

    206
    MasterMaster
    206

      Apr 27, 2005#2

      UE has a Replace In Files command that will replace text in designated files in a directory, and optionally, in all subdirectories.


      Software For Metalworking
      http://closetolerancesoftware.com

      2
      NewbieNewbie
      2

        Apr 27, 2005#3

        This sounds like what I want. Thanks for this answer.

        1

          Feb 16, 2006#4

          Okay, but how do you do this for HEX VALUES????

          Any help would be much appreciated!!

          Thanks,
          philiptdotcom

          6,675585
          Grand MasterGrand Master
          6,675585

            Feb 16, 2006#5

            philiptdotcom wrote:Okay, but how do you do this for HEX VALUES????
            What exactly would you need? Give us an example which shows everything important. Maybe it could be also done with Replace In Files. Hex values can be represented by normal characters (except 00) in the find and replace field. If this is not possible, it could be done with a macro.
            Best regards from an UC/UE/UES for Windows user from Austria

            2
            NewbieNewbie
            2

              Mar 19, 2006#6

              I have large number of files and I want to find MODE=1 and replace them with MODE=0. The file names have pattern something like *dc.raw. How can I do so without opening the file and through a batch file?

              6,675585
              Grand MasterGrand Master
              6,675585

                Mar 19, 2006#7

                Hi srivastava!

                With the Replace In Files command from the menu Search. Open this dialog and the rest should be self-explaining. If it is not self-explaining for you, please press the Help button in this dialog and read the help.

                If you do not have a Search menu with menu item Replace In Files you currently use the Basic menu. Open File - Configuration - section Toolbars / Menus - Management and select with the 2 manage buttons the Advanced menu and toolbar.
                Best regards from an UC/UE/UES for Windows user from Austria

                2
                NewbieNewbie
                2

                  Mar 19, 2006#8

                  From menu, I can follow and do it but how to it through a batch file without start uedit32. I mean like you can open a file as below

                  uedit32 filename

                  How do I execute this command in a batch file so that uedit is invoked and does this job?

                  6,675585
                  Grand MasterGrand Master
                  6,675585

                    Mar 20, 2006#9

                    Record the search and replace into a macro. Save the macro to a file and use following command line option in your batch file.

                    start "ModeReplace" /wait "C:\Program Files\UltraEdit-32\uedit32.exe" "filename" /M,E,1="full path of macro file/macro name"

                    But much more easier would be in your case (replace in a batch file) to use the free search and replace tool Xchang32.exe from Clay's Utilities for Win32 which is a 32 bit console application which returns error codes.
                    Best regards from an UC/UE/UES for Windows user from Austria