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 :
email@example.com firstname.lastname@example.org email@example.com firstname.lastname@example.org email@example.com
Because a user can be in the two databases, I need to delete duplicate entries, using bash.
How can I do it?