[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best practices for grep -f?

From: Reuben Thomas
Subject: Re: best practices for grep -f?
Date: Thu, 4 Dec 2008 17:43:48 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

On Thu, 4 Dec 2008, ONYTZ wrote:

I wonder if this is enough to assume that grep has trouble with too many
arguments read in from a file?

More likely your patterns aren't all different, so when you split them up some match twice, whereas if you supply redundant patterns to a single invocation of grep they only match once:

$ echo the | grep the
$ echo the | grep -e the -e the

reply via email to

[Prev in Thread] Current Thread [Next in Thread]