shell script脚本传参小结
来源:互联网 发布:人力资源软件发展趋势 编辑:程序博客网 时间:2024/05/17 22:50
简单东西, 记录一下:
#!/bin/bashif [ $# -ne 1 ]; # 参数个数判断thenecho "error, usage: $0 20171025"exit 1;fit1=$(date -d $1 +%s) # 时间戳echo $t1执行:
xxxxxx ./a.sh error, usage: ./a.sh 20171025xxxxxx ./a.sh 201710251508860800
以后写shell script, 不要总是这这那那的, 丑!
阅读全文
1 0
- shell script脚本传参小结
- Shell Script[Shell脚本]
- 脚本(shell script)
- Linux Shell Script 编写小结
- Shell脚本设计(1)--初识Shell script
- shell脚本学习小结
- shell脚本小结
- shell脚本符号小结
- shell script编程小结--附带实例
- shell script 脚本传递参数的方法
- script/ shell脚本 callstack如何dump
- 十五. 第一个shell script 脚本程序
- C调用shell script脚本的方法
- Bash Shell脚本学习小结
- Bash Shell脚本学习小结
- Bash Shell脚本学习小结
- Shell脚本数组操作小结
- Shell脚本数组操作小结
- C语言数据结构双向链表的操作集
- Cocos2dx几种设计模式之二
- 目录和文件权限,umask ,文件隐藏属性
- SpringMVC Bean接收POST发送的JSON数据
- 单例模式
- shell script脚本传参小结
- Linux之redhat管理虚拟机的常用命令
- 线性回归算法实现
- Codeforces Round #200 Div.1 E tree
- 《237 Gbit ps unrolled hardware polar decoder》237 Gbit / s展开的硬件极化解码器
- Cocos2dx几种设计模式之三
- 色彩表示与编码
- 嵌入式项目1--DMA学习
- Android的启动模式及传递数据的方式