Search and replace tool that can handle multiple files and subfolders

10

1

I'm looking for a tool which can search/replace within file contents for a broad range of file types (i.e. it should, if possible, process the maximum possible number of file types like .txt, .sql, .xls, .doc, .r, .c, etc.). It should handle multiple files in multiple folders/subfolders. Just searching the file contents is not enough for me, it should also have the replacing capability.

Mehper C. Palavuzlar

Posted 2009-12-25T08:27:40.080

Reputation: 51 093

Question was closed 2014-07-29T04:14:16.850

Answers

14

grepWin (not to be confused with Windows Grep) can do this. It supports text-based search and replace, as well as regular expression search and replace:

alt text

grepWin is free and open source.

John T

Posted 2009-12-25T08:27:40.080

Reputation: 149 037

2

I like UltraEdit, but if money counts, you can try NoteTab Light.

Hope this helps.

Scott McClenning

Posted 2009-12-25T08:27:40.080

Reputation: 3 519

Can UltraEdit handle files like .xls, .doc? – Mehper C. Palavuzlar – 2010-01-15T11:45:58.253

It will, but if you open a .doc or .xls in Notepad.exe, you will see some text is stored in ASCII, but you probably wouldn't want to edit those documents from a text editor. That said, if you needed to do a simple search and replace (change one name to another) it may work, but before working with .doc and .xls files I would run a test or run it on duplicates just in case editing the docs that way damages them. At the very least UltraEdit will give you a list of the docs with the search term and you can edit those hard to modify docs with their programs. – Scott McClenning – 2010-01-16T20:44:05.830

1

Windows Grep will probably do what you want. It searches and replaces text in files, including subdirectories.

The primary feature of Windows Grep is to search the contents of one or more files on your PC for occurrences of text strings you specify and display the results. Once found, it can replace matches with other strings.

Snark

Posted 2009-12-25T08:27:40.080

Reputation: 30 147

Windows Grep

Windows Grep is no longer available.

We will continue to support existing customers for the foreseeable future. Please get in touch wish us using the email address you received your registration details from.

Thank you for your support over the last 25 years! – Geomorillo – 2017-05-10T17:37:53.413