Created
April 10, 2019 18:25
-
-
Save ravnoor/3ebcbee47c42bc8e2ab0e6d0ccb17d11 to your computer and use it in GitHub Desktop.
extract email addresses from a text file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" list-emails.txt | sort | tr '[:upper:]' '[:lower:]' | uniq > emails-extracted.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment