开发者

Windows console command: find a pattern inside a text?

开发者 https://www.devze.com 2022-12-11 09:16 出处:网络
I remember windows getting a command to search a pattern inside a text. 开发者_运维知识库Does there anyone know that?

I remember windows getting a command to search a pattern inside a text. 开发者_运维知识库Does there anyone know that?

Thanks.


Even before then, there's the FIND command (goes all the way back to DOS 2.0).

FIND "string" filename

The string needs to be in double quotes.


I think you might be looking for FINDSTR. It's available in Windows XP and later. Type

findstr /?

For usage info.

0

精彩评论

暂无评论...
验证码 换一张
取 消