I often observe 'grep -r -I' stuck. This happens when there is FIFO node
under /etc. I believe grep is stuck trying to open FIFO "files". (Might be also stuck opening device files (b/c nodes), I'm not sure.)
Does grep have a option to ignore all non-plainfiles ( FIFOs(p), devices (b,c)) ? WHat if -I option can be aliased to ignore non-plainfiles ?
My workaround is ugly, I do something like 'find /etc -type f | grep+ regex' where grep+ is a script which reads filenames from stdin and greps them. This is slow, though, but does avoid being stuck on non-plainfiles.
Yakov Lerner