Created
July 16, 2014 15:31
-
-
Save joecannatti/754ab8595258d05410f9 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
imgs=`find . -name \*.jpg | head -5` | |
img_args=$(for i in $imgs; do echo -n " -a $i "; done) | |
echo $'Hey Grandpa, \nI wrote a computer program to send you 5 pictures of Ari everyday until you\'re caught up. \nI think it\'s more fun to get 5 a day then to get them all at once.\nSorry you weren\'t on the list to begin with.' | \ | |
mutt -s "Daily Ari Photos" $img_args -- [email protected] [email protected] | |
for i in $imgs; do | |
mv $i sent | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment