Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想匹配label for="id_query当前目录中文件中的确切字符串。但是,grep -w "label for=\"id_query" .不匹配。知道如何成功逃脱双引号吗?
label for="id_query
grep -w "label for=\"id_query" .
只需使用单引号即可。
grep -w 'label for="id_query'