正则表达式求不包孕sheep的行

正则表达式求不包含sheep的行想找出不包含单词sheep的行,正则怎么写呢?ps:请注意贪婪模式[解决办法]grep -

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

[解决办法]
grep -v -w sheep yourfile
这样如何?