xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

linux bash shell auto read write template

linux bash shell auto read write template

auto-read-write-template.sh

#!/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


$ echo ./template.md >> ./week-$1/readme.md

# cd week-$1

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

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

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2021-03-27 10:05  xgqfrms  阅读(70)  评论(0编辑  收藏  举报