I have the following log file.
line 1: uk-test
line 2: Description
line 3: 1.1.1.1
line 4: test
line 5: true
I need to find if the line ( line 5 ) exists and if so print this and line 2 to a log file. If not skip. The problem is that this situation occurs 3 lines above it. This is the piece that does not work.
Is this possible.
line 1: uk-test
line 2: Description
line 3: 1.1.1.1
line 4: test
line 5: true
I need to find if the line ( line 5 ) exists and if so print this and line 2 to a log file. If not skip. The problem is that this situation occurs 3 lines above it. This is the piece that does not work.
Is this possible.