Scripting question, [small programming question

Alastair Neil ajneil at gmail.com
Wed May 25 04:37:15 UTC 2005


one liner:
look at the rename command:

rename 0 00 0*.jpg

On 5/23/05, Jeff Kinz <jkinz at kinz.org> wrote:
> On Mon, May 23, 2005 at 03:43:53AM -0400, Claude Jones wrote:
> > Could someone help. I have chosen a bad naming convention for a long list, and
> > I need to make a small alteration. The list looks like the following
> > 001-Fig 1-1.jpg
> > 013-Fig 4-4a.jpg
> > 024-Fig 5-6.jpg
> > 035-Fig 5-17.jpg
> > etc...
> > I would like to add a 0 to each group of three numbers at the beginning of
> > each name so that 001-Fig 1-1.jpg becomes 0010-Fig 1--1.jpg for example.
> > Could someone help me with the quick way to do this?
> 
> 
> Hi Claude.
> I see you've received some solutions on this so I won't add to them, but
> I do want to correct your terminology.
> 
> This isn't a programming question.  Its a scripting question.
> 
> 
> 
> 
> --
> Jeff Kinz, Emergent Research, Hudson, MA.
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list