Hi Guys,
Am in need of your help one more time on my real data.
I have a file which contains more than thousand lines of data
Live data shown for 4 iterations. We have more than thousand lines of data:-
--------------------------------------------------------------------------
COM.ISEXTDC.PKGINIT:INIT
N
2013-09-12
12:54:45
1
cHitLast
APPS_MANAGEMENT
N
2013-09-12
21:14:19
18
cHitLast
APPS_MANAGEMENT:CLEARCLIENTQUEUE
N
2013-09-12
21:24:57
18
cHitLast
APPS_MANAGEMENT.CLEANUP:CLIENT
N
2013-09-12
20:14:18
3
cHitLast
--------------------------------
1) Need to check for every 6th line ( 'cHitLast') contains a value and it is greater than zero (o)
I dont want to print anything if the sixth line is other than numeric.
2) If the value is greater than 0 then need to print above 5 lines including the 6th line in the tabular format
Example:-
APPS_MANAGEMENT.CLEANUP:CLIENT
N
2013-09-12
20:14:18
3
5 ----> Here i have changed it to value 5 then the output should be as below:-
Name Prefetched AccessLast AccessTotal Running
APPS... N 2013-09-12 20:14:18 3 5
Thanks for your support in advance.