how to escape space in find str

PANDEY Manish 21 Reputation points
2021-12-14T08:08:54.527+00:00

Trying to parse Below command in one execution
test| findstr ":d=1 hl=4"
same is not working due to space but seprately it works
test| findstr ":d=1 "| findstr "hl=4"

So what will be escape character for space.

Developer technologies | Windows Forms
Windows development | Windows API - Win32
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 21,646 Reputation points
    2021-12-14T09:23:20.223+00:00

    Hello,
    Welcome to Microsoft Q&A!
    You can try this.

    findstr ":d=1.*hl=4"  
    

    157299-capture.png
    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.