adding leading zeros to a filename
From: rupert (usenet_at_rupespad.com)
Date: 01/28/05
- Next message: Chris F.A. Johnson: "Re: adding leading zeros to a filename"
- Previous message: Sven Mascheck: "Re: find files by extensions"
- Next in thread: Chris F.A. Johnson: "Re: adding leading zeros to a filename"
- Reply: Chris F.A. Johnson: "Re: adding leading zeros to a filename"
- Reply: Stephane CHAZELAS: "Re: adding leading zeros to a filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 28 Jan 2005 19:31:44 GMT
I've tried unsuccessfully to find the answer to this, so am hoping
someone here can help...
I've got a directory of photos called:
1.jpg
2.jpg
....
10.jpg
11.jpg
...
100.jpg
101.jpg
...
and I can't for the life of me work out how to write a script to add
leading zeros to the filenames so they are in the form
001.jpg
002.jpg
....
010.jpg
011.jpg
...
100.jpg
101.jpg
...
any help would be gratefully received
Ta most muchly in advance
Rupert :)
- Next message: Chris F.A. Johnson: "Re: adding leading zeros to a filename"
- Previous message: Sven Mascheck: "Re: find files by extensions"
- Next in thread: Chris F.A. Johnson: "Re: adding leading zeros to a filename"
- Reply: Chris F.A. Johnson: "Re: adding leading zeros to a filename"
- Reply: Stephane CHAZELAS: "Re: adding leading zeros to a filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|