Skip to content

Instantly share code, notes, and snippets.

@yue82 yue82/
Last active May 19, 2018

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
cp -n ~/memos/ ~/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.