Search code examples
batch-filefindstr

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


Solution

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