Created
July 8, 2022 16:50
-
-
Save ArneAnka/612b9f51566b73b10fc8b3eddce16747 to your computer and use it in GitHub Desktop.
Get all emails from a file with grep and regex
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" file.txt` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment