What changes need to be made to the following findstr
command in order to return a list of all the uses of the exact phrase "port" : "
in all the files contained in the directory and subdirectories?
findstr /I "port" : " *
Obviously, escaping the quotes is necessary, but what specific syntax is required to escape the quotes while still getting the expression to return the expected values?
This is on windows 8.1 using cmd.exe
.
you need to escape the double quote, and since your regular expression uses spaces, use the
/c
switch to pass a search string instead of space separated regexes:from here: