Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Can I regex & grep to select contiguous lines?by dpenny (Initiate) |
on Aug 24, 2002 at 01:29 UTC ( [id://192508]=perlquestion: print w/replies, xml ) | Need Help?? |
dpenny has asked for the wisdom of the Perl Monks concerning the following question:
I have lines of a file in an array, each begins with a time stamp, HHMMSS, and are in increasing sequential order. How can I construct a grep & regex to select all lines belonging to the 1st 5 minute interval, then the 2nd, 3rd, etc. til end-of-data in array.
Thanks!
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|