commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
find all email addresses in a file, printing each match. Addresses do not have to be alone on a line etc. For example you can grab them from HTML-formatted emails or CSV files, etc. Use a combination of
to filter them.
There are 2 alternatives - vote for the best!
Simply more email-adresses matched
This will catch most separators in the section of the email:
plus + (added for gmail)
... and the basic dash '-' of host names.
The -a option in -aEio tells grep to treat binary files as text files.
If you can do better, submit your command here.
You must be signed in to comment.