What are good grep tools for Windows? [closed]

FINDSTR is fairly powerful, supports regular expressions and has the advantages of being on all Windows machines already. c:\> FindStr /? Searches for strings in files. FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file] [/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]] strings [[drive:][path]filename[ …]] /B Matches pattern if at … Read more

Highlight text similar to grep, but don’t filter out text [duplicate]

Use ack. Checkout its –passthru option here: ack. It has the added benefit of allowing full perl regular expressions. $ ack –passthru ‘pattern1’ file_name $ command_here | ack –passthru ‘pattern1’ You can also do it using grep like this: $ grep –color -E ‘^|pattern1|pattern2’ file_name $ command_here | grep –color -E ‘^|pattern1|pattern2’ This will match … Read more