I don't know if awk is right for this? Would like your opinion and a little kickstart with an awk script please.
I am still new to awk and am trying to pull out all duplicates from fifth (8 digit columm) column of the following log file:
114 0 REC 19 14845445 X L
121 0 REC 19 14845445 X L
114 0 REC 19 14845449 X L
114 0 REC 19 15131591 X L
131 0 REC 19 15131591 X L
114 0 REC 19 15131712 X L
114 0 REC 19 15131734 X L
114 0 REC 19 15131740 X L
114 0 REC 19 15131850 X L
114 0 REC 19 15131941 X L
114 0 REC 19 15131971 X L
114 0 REC 19 15132005 X L
I need to pipe all dupe occurances with full line to another file.
The first column shows user session the fifth column is a record id. I am trying to see how many dupes are occuring in recid column and be able to print out the recid and the user id's to another file. Eventually this is going to be run from a korn script so operator can see the dupe recids.
Thanks
spconway@comcast.net
I am still new to awk and am trying to pull out all duplicates from fifth (8 digit columm) column of the following log file:
114 0 REC 19 14845445 X L
121 0 REC 19 14845445 X L
114 0 REC 19 14845449 X L
114 0 REC 19 15131591 X L
131 0 REC 19 15131591 X L
114 0 REC 19 15131712 X L
114 0 REC 19 15131734 X L
114 0 REC 19 15131740 X L
114 0 REC 19 15131850 X L
114 0 REC 19 15131941 X L
114 0 REC 19 15131971 X L
114 0 REC 19 15132005 X L
I need to pipe all dupe occurances with full line to another file.
The first column shows user session the fifth column is a record id. I am trying to see how many dupes are occuring in recid column and be able to print out the recid and the user id's to another file. Eventually this is going to be run from a korn script so operator can see the dupe recids.
Thanks
spconway@comcast.net