Community
    • Login

    use notepad-plus-plus to search and replace from a text file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 4 Posters 396 Views
    Loading More Posts
    • 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.
    • N
      notepaddpp1023
      last edited by

      Problem:
      need to search and replace text in projects with 5000+ files up to 30,000 files). Not sure if relevant for the question but to give you the scope of the problem.
      Manually using Find What: to Replace with: in the project folder is very time consuming 3 hours for a 4096 file project.

      Question:
      I would like to use a text file to Find What and Replace with in all files at once.

      Is this achievable with notepad plusplus?

      Question followup:
      if not, what would be your suggestion to accomplish this.

      Terry RT Alan KilbornA mkupperM 3 Replies Last reply Reply Quote 1
      • Terry RT
        Terry R @notepaddpp1023
        last edited by

        @notepaddpp1023 said in use notepad-plus-plus to search and replace from a text file:

        I would like to use a text file to Find What and Replace with in all files at once

        That sounds like you have multiple find strings and need to replace with different other strings. If so that complicates things.

        Are you using regular expressions to search, or just literal text? In NPP (Notepad++) there is the “Find in Files” function, where you can point to a folder, use filters on the file names. The details are in the online manual, here.

        You might need to give us some more to go on, so we can better help you.

        Terry

        1 Reply Last reply Reply Quote 3
        • Alan KilbornA
          Alan Kilborn @notepaddpp1023
          last edited by

          @notepaddpp1023 said in use notepad-plus-plus to search and replace from a text file:

          what would be your suggestion to accomplish this

          Such a task is begging for a programming solution, probably outside of Notepad++. If your skill set doesn’t contain programming skills (and it probably doesn’t or you would have already considered that type of solution), then you may be out of luck.

          1 Reply Last reply Reply Quote 3
          • mkupperM
            mkupper @notepaddpp1023
            last edited by

            @notepaddpp1023, it is possible to do what you want in Notepad++ but as others have said, it’s best for you to use the tools/skills you are already comfortable with. Your project description is vague but it sounds complicated. This means you will be figuring out and debugging issues with whatever solution you use. If you take on learning something new, regardless of what it is, then you are also faced with debugging your understanding of whatever new tools or methods you are using.

            Something else to keep in mind is on if this is your own personal project or is it part of a work or school environment? There are solutions that may end up working perfectly well for you personally but may not be portable or usable by others that may not be as familiar with the data as you. Others may have different needs for that data. If you are part of a team and you have bosses and supervisors then those people need to direct the overall process.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors