ImpalaSS has asked for the wisdom of the Perl Monks concerning the following question:
20035pa|02/06/2001|8:30| from here on is about 60 more fields of data
The variables are:foreach $item(@timearray){ $searchstring = "$NETID\|$month\/$date\/$year\|$item\|"; chomp($ECL=`grep "^$searchstring" /PHL/data1/PHL/tmp/ECL_STAT. +txt`); if ( $ECL == "" ) { push @ECL, "||$item||"; } else { push @ECL, $ECL;} }
I am using unix grep in the program, my question is, would using perl grep speed the process? Any tips on speeding it up?$NETID = the network id, which would correspond to 20035pa in the abov +e example. $month, $date, $year = would correspond to 02/06/2001 in the above exa +mple. $item = the time, which would be 8:30 above.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grep Speeds
by merlyn (Sage) on Feb 06, 2001 at 20:10 UTC | |
by baku (Scribe) on Feb 06, 2001 at 21:22 UTC | |
|
Re: Grep Speeds
by jeroenes (Priest) on Feb 06, 2001 at 20:35 UTC | |
by ImpalaSS (Monk) on Feb 06, 2001 at 21:06 UTC | |
by jeroenes (Priest) on Feb 06, 2001 at 21:22 UTC | |
by ImpalaSS (Monk) on Feb 06, 2001 at 21:44 UTC | |
|
Re: Grep Speeds
by arhuman (Vicar) on Feb 06, 2001 at 20:10 UTC | |
|
Re (tilly) 1: Grep Speeds
by tilly (Archbishop) on Feb 07, 2001 at 00:20 UTC | |
|
Re: Grep Speeds
by spaz (Pilgrim) on Feb 06, 2001 at 22:38 UTC | |
|
Re: Grep Speeds
by runrig (Abbot) on Feb 06, 2001 at 23:11 UTC | |
|
Re: Grep Speeds
by Albannach (Monsignor) on Feb 06, 2001 at 20:53 UTC | |
by ImpalaSS (Monk) on Feb 06, 2001 at 21:01 UTC |