This question already has an answer here:

I have bunch of files in one directory, like these:

0002.b3120c4bcbf3101e661161ee7efcb8bf
0003.acfc5ad94bbd27118a0d8685d18c89dd
0004.e8d5727378ddde5c3be181df593f1712
0005.8c3b9e9c0f3f183ddaf7592a11b99957

And so on...

And I want to rename them to something easier to manipulate in a script:

2
3
4
5

And so on...

How to do it in Linux shell or script?

marked as duplicate by Jeff Schaller, schily, Community Aug 13 at 17:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Thanks to the second link (Batch rename files to a sequential numbering) provided by @don_crissti in the first comment, problem solved. Cheers.

  • Two downgrades! LOL – user305251 Aug 13 at 17:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.