G: Added --lb to get first input faster.
This commit is contained in:
parent
aa01acc582
commit
b2ed8d9d73
2
G/G
2
G/G
|
@ -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 '.
|
||||||
|
|
Loading…
Reference in a new issue