I have a file of numbers on different lines. There are many duplications. I would like to delete one line of the duplications while keeping the other line.
uniq -d deletes both lines. Is there a way to only delete one line while leaving the second identical line?