How can I use findstr with newline regular expression

后端 未结 4 1285
天涯浪人
天涯浪人 2020-12-21 14:51

I\'m on windows dos prompt. I have log file which contains log like:

Timestamp: Order received for Item No. 26551
Timestamp: Exception: OutOfRangeException
T         


        
4条回答
  •  时光取名叫无心
    2020-12-21 15:18

    I had a look into the findstr documentation and I think it is not able to do a multiline search.

    Probably you should use more advanced tools like awk, or some versions of grep seems to support multiline regex too.

    You can have a look at stackoverflow.com/questions/152708/

提交回复
热议问题