I have a listed document (just a listing of user accounts with their login email, i.e)
John Smith@tesla.com
login:jsmisth@tesla.com
John Smith@freewave.com
login:jsmith@freewave.com
Mary Joyner@@tesla.com
login:maryj@tesla.com
Mary Joyner@freewave.com
login:maryj@freewave.com
It's a listing of about 300 users, all with multiple email addresses. How would I go about remove all but the first two (e.g John Smith@tesla.com, login: jsmith@tesla.com) and do the same for the rest of the listed users in the list?