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)'
In reply to Storing system grep's output to an array in perl by tc_blr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |