Skip to content

Instantly share code, notes, and snippets.

@MrThreat
Created October 13, 2017 19:16
Show Gist options
  • Save MrThreat/abe6ae837e0bf6b41e4234e6bb7ae8de to your computer and use it in GitHub Desktop.
Save MrThreat/abe6ae837e0bf6b41e4234e6bb7ae8de to your computer and use it in GitHub Desktop.
clipboard |email extract + sort |clipboard
#!/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