Thread: Regex examples
View Single Post
Old 08-19-2019, 09:32 AM   #612
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
reverse order

rename files in reverse order

I have a book that needs to be recognized. It consists of 258 pages, numbered from 001.tif to 258.tif.

I use gimagereader-qt (a front-end for Tesseract) to recognize them. Unhappily, the files imported and displayed on gimagereader are set in reverse order (from 258 to 001). (see screenshot)Yes it's a bug and I have no solution for it. The processing thus begins with 258. Moving the files manually in the display is too tedious.

Except if I batch rename the files in reverse order. Thus 001 would become 258, 002 > 257 and so on.

gprename allows to use a regular expression...
Attached Thumbnails
Click image for larger version

Name:	reverse-order.png
Views:	290
Size:	71.6 KB
ID:	173034  
roger64 is offline   Reply With Quote