作用:
输出固定格式的要求
选项:
-s 指定输出的分隔符 默认为\n
-w 指定为定宽输出,不能和-f一起用
-f 按照指定格式输出,不能和-w一起用
[root@localhost] ~/testdown$
seq 1 5
1
2
3
4
5
[root@localhost] ~/testdown$
seq 1 2 10
1
3
5
7
9
[root@localhost] ~/testdown$
seq -s :
1 2 10
1:
3:
5:
7:
9
[root@localhost] ~/testdown$
seq -
w 8 11
08
09
10
11
[root@localhost] ~/testdown$
seq -f
'dirg' 8 11
dir0008
dir0009
dir0010
dir0011
[root@localhost] ~/testdown$
mkdir $(
seq -f
'dirg' 1 3)
[root@localhost] ~/testdown$
ls
dir001 dir002 dir003
转载于:https://www.cnblogs.com/fanren224/p/8467094.html