perl -e 'for (grep {-f} <*>) { rename $_, sprintf("%02d%s", ++$i, $_) }'
Zenon Zabinski | zdog | zdog@perlmonk.org
In reply to (zdog) Re: (2) how to rename all files in a dir
by zdog
in thread how to rename all files in a dir
by Anonymous Monk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |