>From the grep man-page:

       --include=PATTERN
              Recurse in directories only searching file matching
PATTERN.

What type of PATTERN can be used here (i.e. glob, regex, extended regex,
etc.)?

For example, I want to search recursively below a directory D, but want
to check
only files starting with "no" or "uh". How do I do this using --include
?

I tried the following:

  # glob pattern
  grep -r --include="{no,uh}*" abc D

and the following:

  # extended regexp
  grep -r --include="(no|uh).*" abc D

but neither variant located my files. But I know that there are files
matching, because

  # Look at all files
  grep -r abc D

shows some matching files starting with 'no' and 'uh'.

Ronald
-- 
Ronald Fischer (phone +49-89-63676431)
mailto:[EMAIL PROTECTED]


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to