R
rab
is this the best way to grep a HUMONGUS file (>3000000 lines) for a
list of matching words within a perlscript?
(the file is too big to load into an array)
------------------------------------------------------
my @greplist=qw( var full error over repeats no_space );
my @all;
foreach (@greplist){
my @finds = `/usr/bin/grep $_ /var/adm/syslog`;
push(@all,@finds);
}
print @all;
------------------------------------------------------
list of matching words within a perlscript?
(the file is too big to load into an array)
------------------------------------------------------
my @greplist=qw( var full error over repeats no_space );
my @all;
foreach (@greplist){
my @finds = `/usr/bin/grep $_ /var/adm/syslog`;
push(@all,@finds);
}
print @all;
------------------------------------------------------