I have a copy of grep.exe that is dated 23 Oct 2003 and I got it from this site: http://unxutils.sourceforge.net/
long time ago as part of the UnxUtils.zip. The grep's file size is 135,680 bytes and it does not have the traditional Windows PE file version information so I can't tell you the version number.
This copy has the -P (Perl Regular Expression) mode that I need to grep a tab (0x9) character and to use the full regular expression syntax. It is great. Because I can use the syntax like:
grep -P "^\tHello" test.txt
to find all the line beginning with a tab character following by 'Hello'.
But I am disappointed to find the grep.exe in the latest package (March 1, 2007) does not have the -P switch. Can someone explain why?
The grep in http://gnuwin32.sourceforge.net/packages/grep.htm has the -P but its --include does not work. Terrible with this kind of variations.
I have discovered how to display the version information. Here are the version informations:
The Grep.exe that has the -P dated Oct 23, 2003 is version 2.5.1
The Grep that is part of the UnxUtils.zip (March 1, 2007) from this site is dated April 14, 2003 and the version is 2.4.2.
When can I find the UnxUtils.zip that contain the grep 2.5.1?
One more question: grep 2.5.1 have the --include switch but 2.4.2 does not. Why is that?
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.