grep-windows icon indicating copy to clipboard operation
grep-windows copied to clipboard

grep-windows

Instructions for building Gnu Grep and pcre2grep as native windows applications

All patches under the same license as sources of Gnu Grep: GPLv3 or later

Author of the patches: Michael M. Builov ([email protected])

Changes since windows build of Gnu grep-3.3

  • fixed support for colorizing output of grep in Windows console (enabled via '--color' option; tip: use "color" command to reset console colors)

Changes since windows build of Gnu grep-3.7

  • now support for Perl regular expressions is statically complied in the grep executable

Changes since windows build of Gnu grep-3.8

  • search in sub-directories (grep -r ...) is now working

Changes since windows build of Gnu grep-3.11

  • added experimental support for inline UTF16->UTF8 transcoding

Pre-built executables:

  • grep-3.11-x64.exe - grep 3.11 built for Windows10 x64
  • grep-3.11-x86.exe - grep 3.11 built for WindowsXP x86
  • pcre2grep-10.42-x64.exe - pcre2grep 10.42 built for Windows10 x64
  • pcre2grep-10.42-x86.exe - pcre2grep 10.42 built for WindowsXP x86

Instructions how to build pcre2grep

  • pcre2-10.42-build.txt

Instructions how to create build patch

  • grep-3.11-build-patch-howto.txt

Instructions how to apply build patch to compile Gnu grep using native tools only

  • grep-3.11-build.txt

Prepared build patches

For x64/Windows10/VS22:

  • grep-3.11-build-VS22-x64.patch

For x86/WindowsXP/VS22:

  • grep-3.11-build-VS22-x86.patch