PowerShell's Select-String cmdlet was fine in v1.0, but is significantly better for v2.0. Having PowerShell built in to recent versions of Windows means your skills here will always useful, without first installing something.
New parameters added to Select-String: Select-String cmdlet now supports new parameters, such as:
-Context: This allows you to see lines before and after the match line
-AllMatches: which allows you to see all matches in a line (Previously, you could see only the first match in a line)
-NotMatch: Equivalent to grep -v o
-Encoding: to specify the character encoding
I find it expedient to create an function gcir for Get-ChildItem -Recurse ., with smarts to pass parameters correctly, and an alias ss for Select-String. So you an write:
UnxUtils is the one I use, works perfectly for me...
Cygwin includes grep. All the GNU tools amd Unix stuff works great on Windows if you install Cygwin.
http://www.cygwin.com/
PowerShell's Select-String cmdlet was fine in v1.0, but is significantly better for v2.0. Having PowerShell built in to recent versions of Windows means your skills here will always useful, without first installing something.
I find it expedient to create an function
gcir
forGet-ChildItem -Recurse .
, with smarts to pass parameters correctly, and an aliasss
forSelect-String
. So you an write:Baregrep (Baretail is good too)
Git on Windows = grep in cmd.exe
I just found out installing Git will give you some basic Linux commands: cat, grep, scp and all other good ones.
Install then add the Git bin folder to your PATH and then your cmd.exe has basic Linux functionality!
http://code.google.com/p/msysgit/downloads/list?can=3
Another good choice is MSYS. It gives you a bunch of other GNU utilities to allow you to be more productive.