Created
April 15, 2013 16:38
-
-
Save thechinnster/5389423 to your computer and use it in GitHub Desktop.
Text File to Day One
This file contains 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 | |
doneFile=~/Dropbox/Apps/Drafts/Journal.txt | |
if [[ -s $doneFile ]] ; then | |
echo -e "\n\n #done" >> $doneFile | |
/usr/local/bin/dayone new < $doneFile | |
rm $doneFile | |
touch $doneFile | |
fi ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Every day I add lines to a file to track what I've done that day. Then at the end of the day this script runs which imports the text from the file as an entry in Day One, deletes the file and then creates a new file with the same name ready for the next day.