Re: [pcre-dev] Suggested addition for pcregrep

Kezdőlap
Üzenet törlése
Szerző: Petr Pisar
Dátum:  
Címzett: pcre-dev
Tárgy: Re: [pcre-dev] Suggested addition for pcregrep
On Fri, Oct 28, 2011 at 04:56:31PM +0100, Philip Hazel wrote:
> On Fri, 28 Oct 2011, Sheri wrote:
>
> > Could you please add an option for naming a file that contains a list of
> > files to be searched? Possibly --filelist=
>
> Noted. Sounds perfectly reasonable.
>
> > Since globbing doesn't work at all when pcregrep is built in some
> > environments, the user could create a list by piping from the dir command.
>
> Presumably the files in the list are newline-separated (that is, by CRLF)?
> The option should probabably allow for any ASCII newline separator.
>

This is not enough for POSIX systems. There you can have any character except
forward slash and NULL in a file name. (See `UNUSUAL FILENAMES' section in
find(1) manual page for more details).

If you think both new-line- and NULL-separated lists are useful, you can add
another option --filelist0.

-- Petr