Created
May 8, 2015 05:52
-
-
Save gr4y/70add45ba567304db5d6 to your computer and use it in GitHub Desktop.
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 | |
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