> "JY" == James Youngman writes:
JY> What is the use case answered by this command? To retrieve an
JY> arbitrary (though not random) selection of three results?
Just for a more efficient way than find ... | head -n ...
On Sat, Nov 12, 2016 at 11:57 PM, 積丹尼 Dan Jacobson wrote:
> Gentlemen,
Many of us are not gentlemen, of course!
> just like the SQL language has a "LIMIT" operator
It also has ORDER BY, which is why LIMIT is useful.
> so also does find need a -limit (and xargs a --limit) option.
For cases whe
Gentlemen, just like the SQL language has a "LIMIT" operator, so also
does find need a -limit (and xargs a --limit) option.
You might ask can't one just use e.g.,
$ find|sed 3q
$ some_command|sed 3q|xargs ...
and e.g.,
$ find -print0 | perl -0nwe 'print; exit if $. == 3;' | xargs -0 ...
if needin