in reply to (ichimunki) re: Grep Effeciency
in thread Grep Effeciency

Well,
There are 2 seperate files. The ECL_STAT and the CEL_STAT. Then there are 1200 NETID's. What im trying to do ( with maximim speed) is, grab all the data from (ECL_STAT), then split each line found, and perform calculations to certain fields. Then, do the samt thing to the CEL_STAT file using the same netid. It is faster if i dont use the second line (the !/^$NETID/) one, but i wanted to show what i want to do. I want it so that, once all the $NETID's (for example 12753pa), delete those lines from each array, thus making the arrays smaller and easier to search the next time around?

I hope this makes some kind of sence

Thanks



Dipul