它有三个选项

-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

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