Skip to content

Instantly share code, notes, and snippets.

@josephby
josephby / urls-from-email.sh
Last active October 20, 2016 16:39
bash one-liner to dump all URLs from an email newsletter
#/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