shell日期循环
来源:互联网 发布:263网络股份有限公司 编辑:程序博客网 时间:2024/05/17 22:51
1. vi test.sh
2.
#!/bin/shstartdate=`date -d "$1" +%Y-%m-%d`enddate=`date -d "$2" +%Y-%m-%d`while [[ $startdate < $enddate ]]do echo "########$startdate#########" startdate=`date -d "+1 day $startdate" +%Y-%m-%d`done
3.保存 修改权限 chmod 755 test.sh
4. 执行 ./test.sh 2015-01-01 2015-01-10
0 1
- shell日期循环
- shell 日期循环
- shell日期循环
- shell循环日期
- shell 两个日期之间循环
- shell 开始日期 结束日期循环
- shell中根据日期进行循环
- SHELL循环遍历两个日期作为参数执行命令
- 指定开始和结束日期循环的shell脚本
- SHELL循环遍历两个日期作为参数执行命令
- shell 实现N位自动补零和日期循环
- 循环日期
- 循环日期
- 循环日期
- [Shell] Shell 循环取出目录中的文件及日期的用法
- shell 日期
- shell 日期
- shell 日期
- 保存APP内所有异常
- scala中日期格式的转换
- shiro学习第一步
- [Maven] Missing artifact (解决办法)
- 用GDB远程调试android native程序
- shell日期循环
- 如何使用CocoaPods
- 解决Android端融云无法初始化(程序一运行就崩溃),定位在RongIM.init(this);
- URLForResource加载项目内的HTML
- Java、Android多线程、线程池
- 心血来潮
- DM9000 和处理器地址的关系
- iOS-Core-Animation-Advanced-Techniques(五)
- 内容来至(http://blog.csdn.net/dadaadao/rss/list)