Category: tips-n-tricks
-
Oneliner to remove duplicates while maintaining the original order
If you have got a list like this: one two one three one two four and you want to remove the duplicates from the list, chances are that you will end up with this result: four one three two Because you are using a command like: sort -u < list.txt or the longer form: cat…