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.
3 Answers
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:
grepWin is free and open source.
I like UltraEdit, but if money counts, you can try NoteTab Light.
Hope this helps.
-
-
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. Jan 16, 2010 at 20:44
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.
-
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! May 10, 2017 at 17:37