当前位置:网站首页>Shell takes the month within a certain time range
Shell takes the month within a certain time range
2022-07-23 11:42:00 【AA master Zhao】
#!/bin/sh
if [ -n "$1" ] ;then
do_date=$1
else
do_date=`date -d "-1 day" +%Y-%m-%d`
fi
end_date="2018-01-01"
>./month_num.txt
while [[ $do_date > $end_date ]]
do
echo ${do_date:0:7} >>./month_num.txt
do_date=`date -d "-1 month $do_date" +%Y-%m-%d`
done
边栏推荐
- Federal Reserve governor Waller: decentralized finance may eventually change the traditional financial market
- Preliminary study on DC-1 shooting range
- Rogue goto statements in C language
- [doris] configure and basically use the contents system (continue to add content when you have time)
- Bank of Indonesia governor said the country is actively exploring encrypted assets
- Yarn容量调度器设置
- MySQL functions & views & import and export
- mysql修改函数权限未生效
- Security problems of FileInfo in PHP file upload
- 数仓4.0笔记——数仓建模
猜你喜欢
随机推荐
Vite x sigma creates designer specific I18N plug-ins
NFT digital collection system development: Shenzhen Evening News "good times travel" digital collection online seconds chime
Command Execution Vulnerability and defense
PHP文件上传中fileinfo出现的安全问题
The object in $attrs doesn't change, but it triggers watch listening?
Goodbye if else
The tree form based on El table and JS xlsx realize the function of downloading excel (II)
自定义forEach标签&&select标签实现回显数据
自定义MVC(上)
Niuke question brushing record -- MySQL
Security problems of FileInfo in PHP file upload
数字藏品系统开发:企业布局元宇宙数字藏品
MySQL functions & views & import and export
[deployment] cluster deployment and startup of presto-server-0.261.tar.gz
MySQL索引&&执行计划
NFT数字藏品开发:数字藏品在未来究竟有哪些可能的应用场景?
NFT digital collection development: what are the possible application scenarios of digital collections in the future?
mysqldump批量导出mysql建表语句
数仓4.0笔记——业务数据采集
Burpsuite learning notes







![[doris] configure and basically use the contents system (continue to add content when you have time)](/img/74/21c5c0866ed6b1bb6f9a1e3755b61e.png)
