Hi
having a file as follows
MediaErr.log
84 Server1 Policy1 Schedule1 master1 05/08/2008 02:12:16
84 Server1 Policy1 Schedule1 master1 05/08/2008 02:22:47
84 Server1 Policy1 Schedule1 master1 05/08/2008 03:41:26
84 Server1 Policy1 Schedule1 master1 05/08/2008 03:42:26
using below command to print duplicate line with latest time
nawk '!arr[$1]++ || arr[$3]++ || arr[$7]>=1' MediaErr.log
Current Output
84 Server1 Policy1 Schedule1 master1 05/08/2008 02:12:16
84 Server1 Policy1 Schedule1 master1 05/08/2008 03:42:26
but could not get exact output
it should be
84 Server1 Policy1 Schedule1 master1 05/08/2008 02:22:47
84 Server1 Policy1 Schedule1 master1 05/08/2008 03:42:26
any suggestions