tc_blr has asked for the wisdom of the Perl Monks concerning the following question:
How can i store the output of a system grep command in a perl array?
I am supposed to read a file that has a lot of lines. Few lines start with top - 00:35:18 up... I need to store all the occurances of times like 00:35:18 in a n array.
There are also a few more places where times like these are present. But i need only those occurances that start with top - 00:35:18 up...
The grep that I am currently using is grep -i "top-" filename | awk '(print $3)'
Back to
Seekers of Perl Wisdom