Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/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