What's the alternative to grep -A option?
In bash, I could use grep -A option to see additional lines, but it is not possible with findstr. Is there any other alternative to grep or grep -A option? Thanks.
May 23rd, 2012 10:13am
For advanced search look here
http://windows.microsoft.com/en-us/windows7/Advanced-tips-for-searching-in-Windows
You would make use of some Windows programming internals more than UNIX/Linux command lines. Alternate method is based on Powershell (PS). PS is more advatageous, because you work with complex structures (object) and the transfer of knowledge of .NET gives
you another vector in your administrator work.
Test SFU, if it gives you what you need
http://en.wikipedia.org/wiki/Windows_Services_for_UNIX
Regards
Milos
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2012 4:58pm
1.gnuwin32 grep is a excellent port of grep to windows.
2.In Powershell, select-string pattern -context num1,num2 file_path could resemble grep -A.
May 24th, 2012 9:49am