Re: adding leading zeros to a filename

From: rupert (usenet_at_rupespad.com)
Date: 01/28/05


Date: Fri, 28 Jan 2005 20:25:36 GMT

In article <35vkm1F4osmqqU1@individual.net>,
 "Chris F.A. Johnson" <cfajohnson@gmail.com> wrote:

> On Fri, 28 Jan 2005 at 19:45 GMT, rupert wrote:
> > In article <35vil4F4sjoffU1@individual.net>,
> > "Chris F.A. Johnson" <cfajohnson@gmail.com> wrote:
> >> This must be a popular class; this has been asked (and answered)
> >> several times in the last few days. The class could use a lesson on
> >> searching the archives.
> >
> > don't suppose you know which thread the answer is in as all I've managed
> > to find looking through previous posts are replies saying it's already
> > been answered!!
>
> What part of the the exercise is giving you problems? Have you
> thought about how to generate the new names?

Basically I know nothing about shell scripting. I'm guessing I can
write such a beast that will list the contents of a directory and rename
the files as it goes.

I'm an apple OSX user, so not a unix guru and have had a look through
stuff on perl and regular expressions and although I sort of understand
some of it I've not managed to work out how to make it do what I want.
I can write c, c++, and c# stuff on pc's (the day job) so am not a
novice when it comes to software, but don't have a unix background at
all - adn shell scripts/perl/grep etc are unknown territory. So
basically was hoping for an expert to tell me how to do it! ...and this
looked like a promising place to ask...

Cheers

Rupert :)