Skip to content

Instantly share code, notes, and snippets.

@yue82
Last active May 19, 2018 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yue82/9a4640d675dde397a412d674dcd889e8 to your computer and use it in GitHub Desktop.
Save yue82/9a4640d675dde397a412d674dcd889e8 to your computer and use it in GitHub Desktop.
generate daily memo
#! /bin/bash
year=`date +%Y`
month=`date +%m`
day=`date +%d`
if [ ! -e ~/memos/$year"_"$month ]; then
mkdir ~/memos/$year"_"$month
fi
cp -n ~/memos/template_daily.md ~/memos/$year"_"$month/$year"_"$month$day".md"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment