(foo1,foo2,...,foo1300,fooN)
使用零填充文件名:
(foo00001,foo00002,foo01300,fooN)
for f in foo[0-9]*; do mv $f `printf foo%05d ${f#foo}`; done