renaming files

From: Johnny Cockrell (jc65140_at_aod.fedex.com)
Date: 11/04/03


Date: Tue, 04 Nov 2003 10:26:49 -0600

Hello,

Can anyone help me in renaming about 1000 files I have.

The file names are like 21-10-03-902-02.tif
The change i need to make is in the third set of digits (where the 03 is
in
this example). I need to make the 2 digits to be 3 digits with a leading
0.
In the above example 21-10-03-902-02.tif would need to become
                                  21-10-003-902-02.tif

25-25-25-100-10.tif would need to become 25-25-025-100-10.tif.
I simply need to make the two digits to be 3 digits with a leading 0.
I don't know much shell scripts and need to get this done. Any help
would be
greatly appreciated.

Johnny



Relevant Pages

  • Renaming files
    ... Can anyone help me in renaming about 1000 files I have. ... The change i need to make is in the third set of digits (where the 03 is ... Johnny ...
    (comp.lang.perl.misc)
  • Re: Is JJ Redick the new Steve Alford?
    ... Fred Dehl wrote to Johnny: ... >I thought your IQ was in double digits. ... When you resort to calling me names, the next thing you will see is my back walking away from such adolescent behavior. ...
    (rec.sport.basketball.college)