[neo@test ~]$ seq 10 1 2 3 4 5 6 7 8 9 10 [neo@test ~]$ seq 5 10 5 6 7 8 9 10
等差列, 步长设置
$ seq 1 1 10 1 2 3 4 5 6 7 8 9 10 $ seq 1 2 10 1 3 5 7 9 # seq 0 2 10 0 2 4 6 8 10
分隔符
# seq -s : -w 1 10 01:02:03:04:05:06:07:08:09:10 # seq -s '|' -w 1 10 01|02|03|04|05|06|07|08|09|10
等宽,前导字符用0填充
# seq -w 1 10 01 02 03 04 05 06 07 08 09 10
$ echo "4*5" | bc
# more calc.txt 3+2 4+5 8*2 10/4 # bc calc.txt 5 9 16 2
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。