I have a problem with sort and uniq commands
I have a large file with the following format
06-02-2005 00:01:16|INFO |06-02-2005|00:02:06|481780134|0x49|N|010101010101010101010101010
I need to sort and remove duplicate lines based on the second date and time stamp (after INFO), the series of numbers and the hex code (0x49) only.
I have tried
sort -t, -u -k27,55 "filename" > "output filname"
but I am not getting the results expected. Would anyone have any ideas on how this can be performed?? Your help is appreciated. Thank you..
I have a large file with the following format
06-02-2005 00:01:16|INFO |06-02-2005|00:02:06|481780134|0x49|N|010101010101010101010101010
I need to sort and remove duplicate lines based on the second date and time stamp (after INFO), the series of numbers and the hex code (0x49) only.
I have tried
sort -t, -u -k27,55 "filename" > "output filname"
but I am not getting the results expected. Would anyone have any ideas on how this can be performed?? Your help is appreciated. Thank you..