Created
September 20, 2016 08:28
-
-
Save amiad/1e5c7d042738915ab7b8e21c1b336b6a to your computer and use it in GitHub Desktop.
Filter emails list from 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
#!/bin/bash | |
cat $1 | egrep -o "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}" | tr '\n' ',' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment