tags:

views:

221

answers:

2

I need to find a string having < str > inside it using windows cmd.exe find command, how can I do this?

Isn't < a reserved character?

+2  A: 

Use double quotes (") around the argument to protect the special characters from processing by the shell.

David Schmitt
You can also use ^ to escape occurrences of reserved characters (except %).
Joey
+2  A: 

< and > are reserved characters, but they don't have that meaning when they're inside "pairs of double quotes". Wrap your search string argument to find in double quotes and you'll be okay.

chaos