Home » Questions » Computers [ Ask a new question ]

What is the easiest way to find and replace text in 20 text files in a directory? [closed]

What is the easiest way to find and replace text in 20 text files in a directory? [closed]

I have 20 text files with various extensions in a directory.

Asked by: Guest | Views: 65
Total answers/comments: 5
Guest [Entry]

"GrepWin would do this among others, and it is a Explorer plugin.

However there is quite a big array of different applications available that can do this.

This SO thread on the topic also suggest WinGrep as an option."
Guest [Entry]

"If you are familiar with Visual Studio, you can do that without creating a project. Do (something like): Edit>Find/Replace>Find in Files. There you can specify a folder.

I've done this many times. I'd say it's only overkill if you had to create a project (you don't) or if you didn't have VS installed and needed it only for this request."
Guest [Entry]

"I really like the WildEdit product by Helios Software (makers of the excellent Textpad text editor).

It's reliable, quick, flexible, and doesn't cost much (£8.50 = approx. 10 Euro) - well worth its price!

It handles ASCII, ANSI, UTF-8 and other encoding with no problem, you can pick a directory and a file mask (*.cs, *.as?x etc.) and apply the changes only to those files, and it will keep a backup of your original files in case you want to undo the change.

Marc"
Guest [Entry]

SciTE has this built in on Windows - so long as all the files are in the same directory (and is a very small and quick general purpose text editor into the bargain) - right click and 'Edit with SciTE' any one file in the directory, Ctrl+Shift+F, type in search and replace strings and an optional filename filter and click OK.
Guest [Entry]

"I know I'm a bit late to the Party, Just wanted to Mention this great free tool.
http://dngrep.github.io/"