seq
名字
seq - 打印序列数值
梗概
seq [OPTION]... LAST seq [OPTION]... FIRST LAST seq [OPTION]... FIRST INCREMENT LAST
简介
以步INCREMENT打印从FIRST到LAST的数字
- -f, --format=FORMAT use printf style floating-point FORMAT
- -s, --separator=STRING 使用STRING来分割数字(default: \n)
- -w, --equal-width equalize width by padding with leading zeroes
- --help 显示帮助并退出
- --version 输出版本信息并退出
如果FIRST 或 INCREMENT缺失,其默认是1。缺失的INCREMENT默认是1即使LAST小于FIRST。The sequence of numbers ends when the sum of the current number and INCREMENT would become greater than LAST. FIRST, INCREMENT, 和 LAST被解释为浮点数。INCREMENT通常是正数如果FIRST小于LAST。如果FIRST大于LAST,INCREMENT通常是负数。FORMAT must be suitable for printing one argument of type 'double'; it defaults to %.PRECF if FIRST, INCREMENT, and LAST are all fixed point decimal numbers with maximum precision PREC, and to %g otherwise.