How do I escape a double quote with GNU grep for windows/dos?
问题 I'm trying to search for Assembly="Foobar in all files and direct the output to tmp.txt I've tried (cmd/error) grep -r "Assembly=\"Foobar" . >> tmp.txt error (invalid argument) grep -r "Assembly=""Foobar" . >> tmp.txt error (not enough space) grep -r 'Assembly="Foobar' . >> tmp.txt error (not enough space) very frustrating. Any suggestions? 回答1: You need to worry about escaping quotes for both grep and cmd.exe grep expects quotes to be escaped as \" cmd.exe escapes quotes as ^" . The quote is