pattern.txt:
"BananaOpinion"
"ExitWarning"
"SomeMessage"
"Help"
"Introduction"
"MessageToUser"
Strings.xml
<string name="Introduction">One day there was an apple that went to the market.</string>
<string name="BananaOpinion">Bananas are great!</string>
<string name="MessageToUser">We would like to give you apples, bananas and tomatoes.</string>
预期产量:
"ExitWarning"
"SomeMessage"
"Help"
如何打印在中patterns.txt
找不到的条款Strings.xml
?我可以打印匹配/不匹配的线路中Strings.xml
,但我如何打印出无与伦比的模式?我正在使用ggrep(GNU grep)2.21版,但可以使用其他工具。抱歉,如果这是我找不到的另一个问题的重复。