Created
December 16, 2011 21:03
-
-
Save zachseifts/1487965 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
#!/bin/bash | |
# | |
# Emails weekly updates to an email | |
# | |
# usage: ./gdocs_email [email protected] | |
# | |
google=/usr/local/bin/google | |
mail=/usr/bin/mail | |
updates_dump=/tmp/weekly-$(date +%V).txt | |
email_subject="Weekly Update: $(date +"%A %B %d, %Y")" | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: gdocs_email <[email protected]>" | |
exit; | |
fi | |
$google docs get "Work $(date +%V)" $updates_dump | |
$mail -s "$email_subject" $1 < $updates_dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment