Searching word/phrase in a very large text file in windows

1. Firstly, you need to have a grep tool (like Unix). For windows, you can try

http://www.wingrep.com/

2. Then, you just search a word/phrase in the text file with simple query or advanced regular expression query in the wingrep.

3. You should be getting the line number in the grep search result.

4. Then, start dos prompt.

5. Type command - "more +123 YourHugeFile.txt" where 123 for example is the line number you wish to see starting from.

6. Then, you should see some content in "more" dos screen.

7. If you wish to scroll line by line in "more", key in "enter/ret". if you wish to go page by page, key in "space"

9 Once you are done, type "CTRL + C" to exit.

Comments

Popular posts from this blog

Outlook : "operation failed, object could not be found. " when trying to close a PST.

How to transfer app and data from old iPhone to new iPhone for model IOS17 and IOS18 above.

Troubleshooting Outlook Express (IMAP, POP3, HTTP, NEWS) with the log file