Created
October 13, 2017 19:16
-
-
Save MrThreat/abe6ae837e0bf6b41e4234e6bb7ae8de to your computer and use it in GitHub Desktop.
clipboard |email extract + sort |clipboard
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 | |
clear | |
rm temp.txt | |
pbpaste> temp.txt | |
cat temp.txt | grep -o '[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*' $file | sort | uniq -i |pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment