<分区>
我需要在网页中搜索字符串“Linux”,第一个区分大小写,第二个不区分大小写。
好吧,我的搜索将在 http://www.tldp.org/LDP/intro-linux/html/intro-linux.html 中进行
我编写了下面的代码,但它并没有返回每个单词“Linux”。
echo Linux: $(grep -wc "Linux" ~/workspace/ep-exercicios/m1/e2/intro-linux.html)
例如,我的代码返回 405 个单词,但有 447 个。
怎么做到的?