There is a big file containing a pattern which is repeated periodically in the file, I want to extract just a specific pattern after certain values of occurrence as well as the next N lines.Here is an example but the numbers before members of the group are not really existing.input:1 members of the group......2 members of the group.........n members of the group.........output:85 members of the group...............(85th match and the next 5 lines)
Extract nth line matching pattern and the next N lines
text processing