The find command in Windows commandline

Hmm... I feel like I just had a de javu... But anyway.. I hate browsing through a long log file. Does the GREP command in Linux exist on Windows? No... But windows have something like this...

find "The String You're Looking For" SomeFile.txt

So say, I want to find all occurrences of the word "error" when I execute ant from my commandline, I would do something like this:


c:\>ant someTarget > someLog

c:\>find "error" someLog

You get the idea. :)

Published 07-20-2009 10:04 PM by lamia
Filed under:

Comments

Thursday, July 23, 2009 12:01 AM by modchip

# re: The find command in Windows commandline

:)