I have a file with X number of lines.
Somewhere within each line will be an email address following the format:
<telephone_number>@domain.net
Each line is not a set length and there are no delimiters to work with.
I want to write a script that extracts the telephone number from each line and writes this extract to a file.
I think the key to this is the '@' symbol, but i've had no luck constructing an awk command to extract the string (either 10 or 11 integers in length as per UK format) from immediatley before the @.