Hi,
Have a flat file like below:
1
2
4
1
2
1
3
Need to delete all duplicate instances.
Output:
1
2
4
3
Can't use "uniq" as it works on a sorted file.
Can't "sort" as need to maintain the original order.
Thanks in advance.
---------- Post updated at 03:51 PM ---------- Previous update was at 03:47 PM ----------
Gotcha
awk ' !x[$0]++'