bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: problem with grep


From: John Cowan
Subject: Re: problem with grep
Date: Tue, 12 Dec 2006 18:17:17 -0500
User-agent: Mutt/1.3.28i

Larry Brown scripsit:

> I've encountered a problem with grep.  The recurse feature does not 
> work.  I tried -R, -r, ---recursive, and ---directories=recurse.

It does work: it just probably doesn't do what you want or expect it to.
(You don't give any details of your problem, so I'm guessing here, but
you aren't the first or the last with such a complaint.)

If you specify wildcards on the command line, these wildcards are
expanded by your shell (or on Windows by a library loaded with 'grep').
Grep itself never sees them, and does not apply them to directories
it encounters.  As a consequence, all the files descended from any
directory arguments (whether specified with wildcards or not) are grepped.

If this is *not* your problem, please try us again.

-- 
John Cowan    http://ccil.org/~cowan    address@hidden
[T]here is a Darwinian explanation for the refusal to accept Darwin.
Given the very pessimistic conclusions about moral purpose to which his
theory drives us, and given the importance of a sense of moral purpose
in helping us cope with life, a refusal to believe Darwin's theory may
have important survival value. --Ian Johnston




reply via email to

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