Andrew Lentvorski wrote:
> Michael O'Keefe wrote:
> >>>>>The larger problem is that we shouldn't be using a "filename".
> >>>>Hans Reiser (of Namesys) would agree with you.
> >>>What are the proposed alternatives ?
> >>Queries primarily.
> >
> >Wouldn't that make a filename just an alias for 'select inode from
> >filesystem where type = "text document" and size > 2MB and mtime < 5min' ?
> >
> >>I have no objection to keeping a filename.
> >>
> >>However, I note that I type the following idiom:
> >>
> >>find . -type f -exec grep <someregex> {} /dev/null \;
> >>I want the ability to search files. *FAST*.
> >
> >And yet you use -exec rather than xargs ?
>
> Yes.
>
> Because I don't want to wait for the *entire* recursive list of files to
> be built before starting the grep. How do I get around that with xargs?
xargs -l$max_number_of_stdin_arguments
% find . -type f -print0 | xargs -0 -l3 echo | head -2
./.centericq/0/about ./.centericq/0/history ./.centericq/0/info
./.centericq/0/lastread ./.centericq/12035950/about
./.centericq/12035950/history
-john
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list