它有三个选项

-f, --format=FORMAT use printf style floating-point FORMAT (default: %g)

-s, --separator=STRING use STRING to separate numbers (default: \n)

-w, --equal-width equalize width by padding with leading zeroes

-f 最常用 , 例如一次制做 10 个名 dir001 , dir002 .. dir010 的目录,我们可以

运行下面的命令便可

seq -f 'dir%03g' 1 10 | xargs mkdir

mkdir $(seq -f 'dir%03g' 1 10)

它用的是 printf的格式 , %03g' 代表以三位浮点数,以此方法,如用bash3 的 printf

也可作为等价命令

printf 'dir%03d\n' {1..10} | xargs mkdir 或 mkdir `printf 'dir%03d ' {1..10}`

awk 当然也可以

awk 'BEGIN { while (num <10 ) printf "dir%03d\n", ++num ; exit}' | xargs mkdir

这样会比写一个脚本快, 不必写成

for dir in 001 002 003 004 005 006 007 008 009 010

mkdir dir$

也可用 seq 下载一些用数字的 jpeg , 只要格式有数字顺序便可,尤以一些 xxx site ;

for i in `seq -f '%02g' 1 20`

if ! wget -P $HOME/tmp -c ; then

wget -P $HOME/tmp -c $_

-s 选项主要改变输出的分格符, 预设是 \n , 就是 newline

刚刚查询:Explorations seq Radisson intelligence ColtPlus samples generate-transform Display Howitzer BLS Flamenca principles Filmore phyllosilicate density Solubility Guilder Isolated Replacement hydroxide Boethius vanillylamide Alternative 乐享家 silicates flat-worm MSIT exposition Scheele Balance 英特网 Automobile Records 2000 watts Through temperature highring typicality Relaxed doom3 奇丑无比 kidnapping Enemies Dharmakirtti FILMORE LeaveBehind feature authentic scattering Cucumber Netherlands i-Cable precipitant Navigator Polygonum Bollocks colour Acipenseriformes Anglecynn Zombies Isostasy Chicago bumbling Geocentric guilders TERRIER planned anything Securities convertible Unified Stagflation Clubbing plutonite Islamic bollocks. 22CC Peninsula taxonomy Calatrava
友情链接: 知道 电影 百科 好搜 问答 微信 值得买 巨便宜 天天特价 洛阳汽车脚垫 女装 女鞋 母婴 内衣 零食 美妆 汽车 油价 郑州 北京 上海 广州 深圳 杭州 南京 苏州 武汉 天津 重庆 成都 大连 宁波 济南 西安 石家庄 沈阳 南阳 临沂 邯郸 保定 温州 东莞 洛阳 周口 青岛 徐州 赣州 菏泽 泉州 长春 唐山 商丘 南通 盐城 驻马店 佛山 衡阳 沧州 福州 昆明 无锡 南昌 黄冈 遵义
© 2026 haodianxin 百科 消耗时间:0.003秒 内存0.81MB