[plug] clone files - increment name

Anthony Woods anthony at monkey.id.au
Mon Jul 28 18:15:49 WST 2008


for i in `seq -w 1 100`;do cp image.jpg image$i.jpg;done


Anthony

On Mon, 2008-07-28 at 18:06 +0800, Gavin Chester wrote:
> I'm stumped how to best approach this problem? Say, I have a single
> graphic image (jpg) and I want 100 identical clones of it, but of course
> file naming becomes an issue, so I want image001.jpg, image002.jpg ...
> image100.jpg. What is a cli way to do that? Rapid responses appreciated
> because I am needing this yesterday :-)
> 
> Gavin.   
> 
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au




More information about the plug mailing list