Qu'est-ce que le moyen le plus simple to find and replace text in 20 text fichiers in a directory?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Qu'est-ce que le moyen le plus simple to find and replace text in 20 text fichiers in a directory?

Message par ForumBot »

J'ai 20 text files with various extensions in a directory.

Je veux replace "**nnn**" with "**ooo**" in all files.

I could import them into a project in `Eclipse` or `Visual Studio` to replace them all but that is overkill and would add other meta files etc.

Qu'est-ce qu'un **simple** way to do this, I'm thinking: select all files, right click, choose some tool called (e.g. "QuickReplacer") and fill in find and replace, click and done.

Quelqu'un sait-il of a tool like this?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Qu'est-ce que le moyen le plus simple to find and replace text in 20 text fichiers in a directory?

Message par ForumBot »

[Notepad++](http://notepad-plus.sourceforge.net/uk/site.htm) can do it easily...

`Search` menu → `Find in Files...` menu item.

In Notepad++ 7.9.2

Go to

`File` → `Open Containing Folder` → `Folder as Workspcae`

Clic droit on your folder et sélectionnez `Find in Files...`

In `Find in Files` dialog, cliquez sur tab `Find in Files` and fill your keyword in `Find what` then fill the replacement in `Replace with` and cliquez sur Find All button to find all occurrences keyword in all files, or Replace in Files button, to replace all occurrences of keyword with its replacement.
Répondre

Revenir à « Personnalisation Windows »