I want to match the pattern of 4th and 5th value if they matches print Nextline's 4th and 5th value.
Below is the input file
cat
CL3-A3-2 0 0 17496 2851 P-VOL PAIR ASYNC 0 2850 -
CL3-C2-5 0 0 66319 2850 S-VOL PAIR ASYNC 0 2851 -
CL3-A3-2 0 1 17496 2852 P-VOL PAIR ASYNC 0 2851 -
CL3-C2-5 0 1 66319 2851 S-VOL PAIR ASYNC 0 2852 -
CL3-A3-2 0 2 17496 2853 P-VOL PAIR ASYNC 0 2852 -
CL3-C2-5 0 2 66319 2852 S-VOL PAIR ASYNC 0 2853 -
CL3-A3-2 0 6 17496 2857 P-VOL PAIR ASYNC 0 2857 -
CL3-C2-5 0 3 66319 2857 S-VOL PAIR ASYNC 0 2857 -
CL3-A3-2 0 6 47496 2857 P-VOL PAIR ASYNC 0 2857 -
CL3-C2-5 0 3 18496 2857 S-VOL PAIR ASYNC 0 2857 -
For Ex: I'm matching 17496 and 2857, If the search pattern matches in a line, Need to get the immediate nextline's 4th and 5th value using awk or sed is fine.
output would be like
66319 2857
Which reduce my duplication while matching pattern
Thanks
This is straightforward: