How can I print all data between two matches, staring from specific line after the first match. For example, let's say I have two patterns Linux
and Unix
and there are entries between these two words I would like to print data from specific line after the word Linux
, in the example below line #6 after Linux, until the word Unix
:
Linux
12
32
34
556
676
77
85434
rdb
232323
232435656
Unix
98736
4345
4546456
456
expected output:
85434
rdb
232323
232435656
How can I do it using awk, sed and grep?