[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Filename pattern in grep --include=....
From: |
Brian Dessent |
Subject: |
Re: Filename pattern in grep --include=.... |
Date: |
Wed, 01 Feb 2006 16:59:03 -0800 |
Com MN PG P E B Consultant 3 wrote:
> >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.)?
grep is not a part of coreutils, so you're asking in the wrong list.
But if it were me, I would try something like:
$ find D -name no\* -o -name uh\* -print0 | xargs -0 grep abc
The 'find' command is designed specifically for this purpose and has
many more features and knobs for recursion, compared to trying to make
grep do this job.
Brian