G: Added --lb to get first input faster.

This commit is contained in:
Ole Tange 2018-11-24 23:48:28 +01:00
parent aa01acc582
commit b2ed8d9d73

2
G/G
View file

@ -98,7 +98,7 @@ for(@ARGV) {
if($opt::g and @cmd) { if($opt::g and @cmd) {
my $a = shift @cmd; my $a = shift @cmd;
my $run = 'find . -type f | parallel -kXq grep -l '.shell_quote(@$a); my $run = 'find . -type f | parallel --lb -Xq grep -l '.shell_quote(@$a);
if(@cmd) { if(@cmd) {
$run .= '|' . $run .= '|' .
join"|", map { 'xargs -d"\n" grep -l '. join"|", map { 'xargs -d"\n" grep -l '.