Nick
Nick

Reputation: 49

Search for instances of quoted text in batch

Is it possible to use findstr to find "MA" <-- quotes included in search?

Tried a few things but to no avail

Upvotes: 1

Views: 66

Answers (1)

UnknownOctopus
UnknownOctopus

Reputation: 2287

Sure, just escape the quotes by adding \ before them.FINDSTR /C:"\"MA\"" file.txt.

Upvotes: 3

Related Questions