I have a file, each line of which consists of a variable number of space-separated text strings, the last of which being an email address in the usual form
xxxx@yyyyy.zzz
I'm looking for a way to either delete everything except the email addresses or to extract the email addresses to another file.
Can someone please help? TIA.
PS: The actual format of a line is:
[letters and spaces][SP][2 digits][SP][letters][SP][letters][SP][3 digits][SP][3 digits][SP][4 digits][SP][email address]