Skip to content

Instantly share code, notes, and snippets.

@xgqfrms
Created March 26, 2021 08:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xgqfrms/b1be43a2e14a5f919cf60644dfdd3ae8 to your computer and use it in GitHub Desktop.
Save xgqfrms/b1be43a2e14a5f919cf60644dfdd3ae8 to your computer and use it in GitHub Desktop.
daily-notes bash script

daily-notes bash script

#!/usr/bin/env bash

echo "^-v-^ app is running in production env!"
# read args
# date="$1"
# date=$1
# mkdir week-$date && cd week-$date
mkdir week-$1 && cd week-$1
touch day-01.md day-02.md day-03.md day-04.md day-05.md readme.md

cd week-$1

# echo -e ✅
echo -e \# 周报 $1 >> readme.md
echo -e >> readme.md

echo -e https://xgqfrms.feishu.cn/docs/doc-week-notes >> readme.md
echo -e >> readme.md

# ~ === linux username ✅
# echo -e ~ >> readme.md

# bash shell 获取 date ???
echo -e week-$1 2021-00-00 \~ 2021-00-00 >> readme.md
echo -e >> readme.md

echo -e 本周任务 >> readme.md
echo -e >> readme.md

echo -e 下周任务 >> readme.md
echo -e >> readme.md

# echo \n\r ❌
echo -e >> readme.md
# echo ✅
echo >> readme.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment