Linux command line script to renumber files backward

Posted by Donnied on Stack Overflow See other posts from Stack Overflow or by Donnied
Published on 2010-05-08T21:18:32Z Indexed on 2010/05/08 21:28 UTC
Read the original article Hit count: 147

Filed under:
|
|
|

I have JPG files numbered 3006-3057 that I would like to reverse number. I would be content renaming them by adding a backwards number count to the beginning of the name: img_3006.jpg > 99_img_3006.jpg and img_3057.jpg > 48_img_3057.jpg.

© Stack Overflow or respective owner

Related posts about bash

Related posts about number