[plug] clone files - increment name

Gavin Chester gavin.chester at gmail.com
Mon Jul 28 18:52:52 WST 2008



On Mon, 2008-07-28 at 18:15 +0800, Anthony Woods wrote:
> for i in `seq -w 1 100`;do cp image.jpg image$i.jpg;done
> 
> 
> Anthony

Thanks, for your quick response :-) Yours and that of Nick (off-list)
cracked the problem for me.

Gavin  
> 
> 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
> 
> _______________________________________________
> 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