use notepad-plus-plus to search and replace from a text file
-
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. -
@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
-
@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.
-
@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.