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

Clearcase check in/uncheck out all the checked out files script

MSSQL GROUP_CONCAT

Duplicating a local copy of project from TFS and making web software client factory to work