Skip to content

Instantly share code, notes, and snippets.

@super3
Last active February 24, 2017 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save super3/7173942 to your computer and use it in GitHub Desktop.
Save super3/7173942 to your computer and use it in GitHub Desktop.
Linux Quick Guide

Extract Emails from a File:

grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" data.txt | sort -u > emails.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment