Skip to content

Instantly share code, notes, and snippets.

@joecannatti
Created July 16, 2014 15:31
Show Gist options
  • Save joecannatti/754ab8595258d05410f9 to your computer and use it in GitHub Desktop.
Save joecannatti/754ab8595258d05410f9 to your computer and use it in GitHub Desktop.
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