Created
March 12, 2023 13:04
-
-
Save ps1dr3x/39b802844b86027b897b35b69cdfd017 to your computer and use it in GitHub Desktop.
Grep matching email addresses. Output sorted and without duplicates
This file contains 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 -Eiorh '([[:alnum:]_.-]+@[[:alnum:]_.-]+?\.[[:alpha:].]{2,6})' "$@" * | sort | uniq > emails.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment