From: makyo on 10 Jul 2010 00:12
On Mon, 10 May 2010 21:38:13 -0700, Melvin wrote:
> 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
> Unix baby
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
It is in Debian repositories, also at http://www.incava.org/projects/
The disadvantage is that it requires ruby and is slower than grep ...