Linux下Shell编程——grep命令的基本运用(二)

2014-11-24 03:32:19 · 作者: · 浏览: 7
了错误信息

WORDLIST:hello, caicai. world: watch, worldcaicai hello message

WORDLIST:message world watch hello into thehe she last into.

WORDLIST:last save hello caicai, world:message.

执行:grep -s hello caicaiWORDLIST #使用-s选项后,不打印错误信息

结果:WORDLIST:hello,caicai. world: watch, world caicai hello message

WORDLIST:message world watch hello into thehe she last into.

WORDLIST:last save hello caicai, world:message.