This question already has an answer here:
I created a txt file using two requests, one LDAP and one SQL. Results of the two requests are stored in the same txt file.
The txt file looks like this :
firstname.lastname@example.org email@example.com firstname.lastname@example.org email@example.com firstname.lastname@example.org
Because a user can be in the two databases, I need to delete duplicate entries, using bash.
How can I do it?