From: makyo on
On Mon, 10 May 2010 21:38:13 -0700, Melvin wrote:

> Hi,
>
> Is there a way in which a particular file can be excluded from grep
> operations. Say, a directory has 15 files/directories and I want to
> using => grep -r "pattern" *
> Can I exclude a single file from this
>
> Thanks
> Unix baby

Hi.

The command glark has a number of builtin file matching features, e.g.
--without-basename EXPR, --without-name EXPR
Do not search files with base names matching the given
regular
expression.

It is in Debian repositories, also at http://www.incava.org/projects/
glark/

The disadvantage is that it requires ruby and is slower than grep ...
cheers, makyo