日期:2014-05-16  浏览次数:20649 次

正则表达式求不包含sheep的行
想找出不包含单词sheep的行,正则怎么写呢?
ps:请注意贪婪模式


------解决方案--------------------
grep -v -w sheep yourfile
这样如何?