Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

closed as off-topic by Jens Erat, random Jul 29 at 4:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – Jens Erat, random
If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers 3

up vote 12 down vote accepted

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.

share|improve this answer

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

Hope this helps.

share|improve this answer
    
Can UltraEdit handle files like .xls, .doc? –  Mehper C. Palavuzlar Jan 15 '10 at 11:45
    
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 Jan 16 '10 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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.