Created
          September 15, 2016 13:56 
        
      - 
      
 - 
        
Save toddwprice/a012d5e40c826e0520c6931c4df0b2d7 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
toddwprice created this gist
Sep 15, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/bash _now=$(date +"%Y-%m-%d-%a") _title=$(date +"%Y-%m-%d %a") _file="/Volumes/Secomba/todd/Boxcryptor/Dropbox/Home/Docs/Todd/Journal/$_now.md" if [ -f $_file ]; then echo "File $FILE exists. Opening..." else echo "Creating new journal to $_file..." echo "## $_title" > "$_file" fi open "$_file"