in reply to How to restart a while loop that is iterating through each line of a file?
> ... that is iterating through each line of a file ...
your post says
> ... trying to take the first 16 lines of a single file ...
that's confusing.
I see three possible cases:
Re^2: Grab 3 lines before and 2 after each regex hit (sliding window)
HTH!
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to restart a while loop that is iterating through each line of a file?
by cookersjs (Acolyte) on Nov 29, 2016 at 14:30 UTC |