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, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/14585000.html
未经授权禁止转载,违者必究!