我有一堆带有搜索结果的 Yandex.XML 文件。 http://api.yandex.com/xml/doc/dg/concepts/response.xml
我想找出//yandexsearch/request/query所有此类 XML 文件的查询 (),其中第一个 URL ( (//yandexsearch/response/results/grouping/group/doc/url)[1]) 等于某个值(例如,http://www.example.org/)。
与grep_ -l_ xargs xmllint_ xmllint_发现xmllint有一个类似于-l最初匹配的标志)。