I've got some sample data in the following form and need to extract the email address from it:
from=<[email protected]> (<-- note that this corresponds to $7)
...
...
Currently I'm using this:
awk '/from=<.*>/ {print $7}' mail.log
However, that is only finding the strings that match the regex expression.
When it comes to printing it out, it still prints out the whole thing (like in the first text box).