Avatar of AielloJ
AielloJFlag for United States of America

asked on 

Grep for Windows

I need a copy of 'grep' for Windows.   Preferrably a good old command line version with regular expressions.  Don't want to install CygWin, Perl, or anything else.

I downloaded and installed Windows Grep from wingrep.com but it only seems to display the filename and line number.  I need to extract matching lines to another text file.

Thank you in advance.

AielloJ
SoftwareSystem Utilities

Avatar of undefined
Last Comment
AielloJ
SOLUTION
Avatar of Aaron Tomosky
Aaron Tomosky
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of Ernie Beek
Ernie Beek
Flag of Netherlands image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of AielloJ
AielloJ
Flag of United States of America image

ASKER

Thanks you for the replies!  I tried FINDSTR but it didn't seem to work with the regular expressions.  I need to extract "<MarkJ 1>" and "<MarkJ 2>" from all the files in a folder and subfolder and redirect the output to another file.  It didn't seem to like search strings with spaces as parameters.  I used "<MarkJ 1>\|<MarkJ 2>"

I'll look at the other greps.

Best regards,
AielloJ
Software
Software

Software is any set of instructions that directs a computer to perform specific tasks or operations. Computer software consists of programs, libraries and related non-executable data (such as documentation). Computer software is non-tangible, contrasted with computer hardware, which is the physical component of computers. Software written in a machine language is known as "machine code". However, in practice, software is usually written in high-level programming languages than machine language. High-level languages are translated into machine language using a compiler or interpreter or a combination of the two.

43K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo