dimanche 30 novembre 2014

Rename files with even numbers


I have a collection of images which are scanned pages of books. They total some 10,000 pages. The books were printed bilingually, with the text and translation on facing pages. The translation has been discarded, and there is only the original text pages, which are the even numbered pages.


I need the file names to include the correct page number, whereas currently they are in a simple sequence. Happy to use rename or similar.


To make it explicit, we currently have file numbering of the form:


1-001.png, 1-002.png, 1-003.png ...


Where the first number 1 is the volume number; this is to remain unchanged. The second number is the page number, and this needs to be changed thus:


1-002.png, 1.004.png, 1-006.png ...



Aucun commentaire:

Enregistrer un commentaire