[CentOS] grep from /

Mon Nov 27 12:13:30 UTC 2006
Mark Weaver <mdw1982 at mdw1982.com>

> If someone tries to grep a whole Centos 4 server as root from / for a
> single
> word, will you see errors like this?   :-)
> 
> WARNING:  Kernel Errors Present
>    Buffer I/O error on device fd0p10...:  51 Time(s)
>    Buffer I/O error on device fd0p11...:  51 Time(s)
>    Buffer I/O error on device fd0p12...:  51 Time(s)
>    Buffer I/O error on device fd0p16...:  102 Time(s)
>    Buffer I/O error on device fd0p24...:  51 Time(s)
>    Buffer I/O error on device fd0p28...:  51 Time(s)
>    Buffer I/O error on device fd0p32...:  51 Time(s)
>    Buffer I/O error on device fd0p4,...:  102 Time(s)
>    Buffer I/O error on device fd0p44...:  51 Time(s)
>    Buffer I/O error on device fd0p48...:  102 Time(s)
>    Buffer I/O error on device fd0p52...:  51 Time(s)
>    Buffer I/O error on device fd0p56...:  51 Time(s)
>    Buffer I/O error on device fd0p76...:  204 Time(s)
>    Buffer I/O error on device fd0p8,...:  51 Time(s)
>    Buffer I/O error on device fd0p84...:  51 Time(s)
>    Buffer I/O error on device fd0p92...:  51 Time(s)
> 

you may want to use "--exclude=PATTERN". In this case the dir /dev

grep -R --exclude=/dev "some_term"

-- 
Mark

"If you have found a very wise man, then you've found
a man that at one time was an idiot and lived long enough
to learn from his own stupidity."
==============================================
Powered by CentOS4 (RHEL4)