Hi All,
I am trying to remove the duplicate entries in a file and print them just once. For example, if my input file has:
00:44,37,67,56,15,12
00:44,34,67,56,15,12
00:44,58,67,56,15,12
00:44,35,67,56,15,12
00:59,37,67,56,15,12
00:59,34,67,56,15,12
00:59,35,67,56,15,12
00:59,58,67,56,15,12
01:14,35,68,53,15,12
01:14,37,68,53,15,12
01:14,34,68,53,15,12
01:14,58,68,53,15,12
I am trying to get the output as :
00:44,37,67,56,15,12
00:59,37,67,56,15,12
01:14,35,68,53,15,12
So basically what I am trying here is - if a line is repeated more than once, I want it to be printed(or stored in a file) just once.
Have tried using "uniq" command, but doesn't seem to be working.
Any help would be greatly appreciated. Thanks in advance!!