Last active
May 19, 2018 09:40
-
-
Save yue82/9a4640d675dde397a412d674dcd889e8 to your computer and use it in GitHub Desktop.
generate daily memo
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 characters
#! /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