Skip to content

Instantly share code, notes, and snippets.

@flrngel
Created July 4, 2014 06:27
Show Gist options
  • Save flrngel/3698f0267d87e9e25e94 to your computer and use it in GitHub Desktop.
Save flrngel/3698f0267d87e9e25e94 to your computer and use it in GitHub Desktop.
grep -E -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" filename.txt
egrep -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" filename.txt
from
http://www.putorius.net/2011/12/grep-all-email-addresses-from-text-file.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment