Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How does findstr extract the text line I want

I have a txt file.Trying to find out alternate of grep in windows to filter specific data.
Below is my input

7892:d=4 hl=3 l=5781 cons: cont [ 2 ]

52:d=4 hl=3 l=5581 cons: cont [ 0 ]

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

7708:d=4 hl=3 l=4478 cons: cont [ 1 ]

have to get below data

52:d=4 hl=3 l=5581 cons: cont [ 0 ]

Below is my command

findstr ":d=4.*cont [ \0 ]"

This is not working for me. Please suggest the right pattern searching for me .

>Solution :

You can try this. My local tests were successful, and findstr seemed to differ on the command line from the regular expression used on the Web page.

findstr ":d=4.*\[.*0"
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading