seq --待完善
2016-07-21 18:45
281 查看
1.用于产生从某个数到另外一个数之间的所有整数
2.用于产生从某个数到另外一个数之间的所有整数
Usage: seq [OPTION]... LAST
or: seq [OPTION]... FIRST LAST
or: seq [OPTION]... FIRST INCREMENT LAST
Print numbers from FIRST to LAST, in steps of INCREMENT.
Mandatory arguments to long options are mandatory for short options too.
-f, --format=FORMAT use printf style floating-point FORMAT
-s, --separator=STRING use STRING to separate numbers (default: \n)
-w, --equal-width equalize width by padding with leading zeroes
--help display this help and exit
--version output version information and exit
3.-f 选项使用案例
% 后面指定数字的位数 默认是"%g",
"%3g"那么数字位数不足部分是空格
数字位数不足部分是0
% 前面制定字符串
4.-w 指定输出数字同宽 不能和-f一起用
输出是同宽的
5.-s 指定分隔符 默认是回车
2.用于产生从某个数到另外一个数之间的所有整数
Usage: seq [OPTION]... LAST
or: seq [OPTION]... FIRST LAST
or: seq [OPTION]... FIRST INCREMENT LAST
Print numbers from FIRST to LAST, in steps of INCREMENT.
Mandatory arguments to long options are mandatory for short options too.
-f, --format=FORMAT use printf style floating-point FORMAT
-s, --separator=STRING use STRING to separate numbers (default: \n)
-w, --equal-width equalize width by padding with leading zeroes
--help display this help and exit
--version output version information and exit
3.-f 选项使用案例
% 后面指定数字的位数 默认是"%g",
"%3g"那么数字位数不足部分是空格
数字位数不足部分是0
% 前面制定字符串
4.-w 指定输出数字同宽 不能和-f一起用
输出是同宽的
5.-s 指定分隔符 默认是回车
相关文章推荐
- UIViewController Class Reference
- 黑马程序员:我有故事和烈酒,是否愿意跟我走
- HDU 1215 七夕节
- 以字节流读取文件时中文乱码解决
- Gym 100646 Problem C: LCR 模拟题
- 《DOS命令全集(中英文对照)》CHM版.CHM
- 华为2016年应届毕业生招聘公告
- 个人学习:main()函数
- 研发支撑系统ruby on rails环境
- Nginx 日志中记录cookie
- Xcode7 上传AppStore出现 ERROR ITMS-90474,ERROR ITMS-90475错误
- Learning Python 011 高级特性 2
- Learning Python 011 高级特性 2
- 学习资料
- Multiply Strings
- C++中结构体和类
- SQLAlchemy Model Object to json 对象转 JSON
- 我所理解的Cocos2d-x 实时更新游戏对象
- centos6.5下部署hadoop2.4+zookeeper
- Excel学习汇总