ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

any software can do a batch S&R "multi strings" in "multi files" at a time?

(1/4) > >>

chashnniel:
NlotePad++ can do a batch search & replace in multi text files,
--- End quote ---
But it can only search for one string at a time.

I need to S&R nearly 100+ text files, and there are many strings need to be S&Red(400+)
settings → 设置
check for update → 检查更新
profile → 资料
introductory offer → 试销
.....
.....
400+

Then I have to repeat it 400th times!!!

So is there any tools can do it at a time?? Thanks.

m9833:
At StackExchange, there is a similar question: https://softwarerecs.stackexchange.com/questions/32387/software-to-replace-multiple-text-strings-in-multiple-files.

The software recommended here are

1. FindInFile (FiF) for CudaText editor

2. Advanced Find and Replace

3. GSAR

I am not 100% sure though, if they are talking about replacing multiple strings with respective other multiple strings or by only one string.

chashnniel:
Thank you :Thmbsup:
I will look into it!

m9833:
There is one more option, At Stackoverflow, one post suggests using Batch programming in powershell together with a CSV file containing pairs of the strings (searched string - replaced string):
https://stackoverflow.com/questions/25164000/how-to-find-replace-multiple-strings-in-multiple-text-files-using-powershell.

Here is another version of it, with some visual examples: https://jorgecandeias.github.io/2013/04/15/how-replace-multiple-strings-in-text-files-in-powershell/

mouser:
I'd like to know more about such tools myself -- especially ones where you can save and load batches of replacements.

Navigation

[0] Message Index

[#] Next page

Go to full version