
5

word小写变大写,shell定义日期
source link: http://www.hechunbo.com/index.php/archives/425.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

word小写变大写
【shift】和【F3】 ,两次全大写
shell是定义日期
DATE_THIS_MONTH=`date -d "$(date +%Y%m)01" +%Y%m%d`
echo $DATE_THIS_MONTH
DATE_LAST_MONTH=`date -d "$(date +%Y%m)01 last month" +%Y%m%d`
echo $DATE_LAST_MONTH

本文由 hcb 创作,采用 知识共享署名 3.0,可自由转载、引用,但需署名作者且注明文章出处。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK