Carlos E. R. said the following on 04/03/2013 10:03 AM:
No, its your fault. Grep can and _should_ read from whatever input you give it.
Ok, but the man page does not say how to tell grep not to look inside not normal files :-)
Ah, so you want a Swiss army knife? It reminds me of Rob Pike's "considered harmful" view of what Berkeley did to 'cat' I agree with the 'each thing should do one things and only one thing' approach to tool building. Not only does it make combining tools easier - the great power of UNIX is scripting, notable the shell -but each thing can be proven to be 'correct'. If you can make this case for grep then you can make it for cat and tr and many other programs. Perhaps you want to re-invent one of the mainframe OS's of the 50s and 60s? http://harmful.cat-v.org/cat-v/unix_prog_design.pdf -- May the itch of a thousand crabs affect the one who ruins your day and may their arms be too short to scratch. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org