This file contains 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 | |
# urls-from-email | |
# | |
# bash script to dump all URLs from an email | |
# | |
# To use this, save the "Raw Message Source" of an email to a filename (e.g. file.txt) and then run | |
# | |
# ./urls-from-email.sh file.txt | |
# | |
# It will then output every link in the email, one per line, excluding emails from links to twitter.com, getrevue.co or facebook.com |