Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Returns all emails found in the path passed as a parameter
- getEmails(){ p="\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b";grep -RishEo $p $1|grep -Eios $p|awk '!u[$1]++';}
- #Example use:
- #getEmails /bin
- #Output
- #bug-gzip@gnu.org
- #charles@comm.polymtl.ca
- #phil@fifi.org
- #behanw@pobox.com
- #schoepf@debian.org
- #anton@lml.bas.bg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement