Skip to content

Instantly share code, notes, and snippets.

@yue82 yue82/daily.sh
Last active May 19, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.