Skip to content

Instantly share code, notes, and snippets.

@gr4y
Created May 8, 2015 05:52
Show Gist options
  • Save gr4y/70add45ba567304db5d6 to your computer and use it in GitHub Desktop.
Save gr4y/70add45ba567304db5d6 to your computer and use it in GitHub Desktop.
#!/bin/bash
DATE=`date "+%d.%m.%Y"`
DIR="$HOME/Dropbox/Documents/Journal"
FILE="$DATE.md"
# Change to Directory
cd $DIR
if [ ! -f $FILE ]; then
echo "# $DATE\r\n" > "$DATE.md"
fi
open "$DATE.md"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment