I need to search a very large file (a Registry export file) for a specific string. Registry Editor has no way of simply viewing a Registry file and this file is too large to open in a text editor without impacting performance. So, for this I need something like grep. I have grep from GnuWin32 installed, but any time I try to use it, it returns a "memory exhausted" message. Is there a simple-to-install grep package for Windows that works?

  • 1
    Have you tried find? It has nothing common with the find of unix; it's actually the grep of windows. – Gombai Sándor Feb 29 '16 at 3:34
  • I've had to write custom programs to do stuff like this in past. special buffering techniques are required for very large streams, and text streams aren't supposed to work that way. you have to encode the binary data back to text before you can search it, so its a non-trivial problem. – Frank Thomas Feb 29 '16 at 3:39
  • @GombaiSándor I think I have and it is inadequate. – Melab Feb 29 '16 at 3:55
  • There are programs that provide additional functionally which are registry editors O&O has one – Ramhound Feb 29 '16 at 4:08
  • 1
    No, findstr is the grep of Windows. technet.microsoft.com/en-us/library/bb490907.aspx – Sami Kuhmonen Feb 29 '16 at 5:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.