Created
November 1, 2016 18:23
-
-
Save radamant/b7f9b249de4ba429e2d8f1d4a0998c8c to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
url=$1 | |
filename="${url##*/}" | |
[email protected] | |
if [ -z $filename ] | |
then | |
echo "A file name must be specified at end of URL" | |
fi | |
curl $url > /tmp/$filename | |
echo "A kindle attachment for you to read " | mutt -a /tmp/$filename -s "Read this attachment" -- $kindlemail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment