Skip to content

Instantly share code, notes, and snippets.

@rapimo
Created March 12, 2012 14:27
Show Gist options
  • Save rapimo/2022277 to your computer and use it in GitHub Desktop.
Save rapimo/2022277 to your computer and use it in GitHub Desktop.
print email addresses sent out from logfile
cat /var/log/mail.log | grep "status=sent" | awk '{print $7}' | awk '{ sub(/^to=</, ""); print }' | awk '{ sub(/>,$/, ""); print }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment