Pages

30 Jan 2012

Free Grep tool for Windows

It's findstr, which is already available in Windows (XP), did you know?

To get more details, you can refer this link: http://technet.microsoft.com/en-us/library/bb490907.aspx, or  type this command in the Command-line:
findstr /?

Here's a typical example to show how to use:
  • If in the Terminal of Unix you type:
grep -R "hi there" \data
  • Then in the Command-line of Windows you can type:
dir /B /S C:\data | findstr /f:/ "hi there"

No comments:

Post a Comment

Note: only a member of this blog may post a comment.