Timeline for Print only the Nth line before each line that matches a pattern
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 16, 2016 at 18:10 | comment | added | JigglyNaga | @EricRenouf True, the original 'forwards' example misses those, so mine will too. Edited to mention that. | |
| May 16, 2016 at 18:07 | history | edited | JigglyNaga | CC BY-SA 3.0 | caveat |
| May 16, 2016 at 17:12 | comment | added | Eric Renouf | What should happen if there are 2 occurrences of pattern less than N lines apart? I think this would squash the previously found one before the associated line is printed. | |
| May 16, 2016 at 17:05 | history | answered | JigglyNaga | CC BY-SA 3.0 |