bug-grep
[Top][All Lists]
Advanced

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

[bug #31702] command line option '--include' acts as '--exclude'


From: Kevin Hunter
Subject: [bug #31702] command line option '--include' acts as '--exclude'
Date: Fri, 19 Nov 2010 14:36:57 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Ubuntu/10.10 Chromium/7.0.517.44 Chrome/7.0.517.44 Safari/534.7

Follow-up Comment #2, bug #31702 (project grep):

You are, of course, correct.  I should be using find.  And, in fact, that's
what I did after I realized that grep wasn't behaving like I thought it
should.

However, for the uninitiated, find is ... a bit of a trek.

I appreciate your attention to this detail, as while the --{in,ex}clude
options are meant to be used in tandem with -r, I think a single directory
test to make sure one knows what they are doing is a valid "does it work?"
test.

Tangentially, do you think a couple of 'find | xargs grep' examples in the
man page would be useful?  I would be happy to craft a couple.  I just know
that I only recently (last year or so) started really using find, because I
just didn't know how to use it.  Examples in, for example, the man page of
grep, would have been very helpful.  (But, I risk littering this bug with
non-bug discussion, so I'll leave it at that.)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31702>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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