Rename Files to Consecutive Integers [duplicate]
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
This question already has an answer here:
Batch rename files to a sequential numbering
5 answers
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?
bash shell-script files rename
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.
add a comment |Â
up vote
0
down vote
favorite
This question already has an answer here:
Batch rename files to a sequential numbering
5 answers
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?
bash shell-script files rename
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.
see unix.stackexchange.com/q/7446/22142 or unix.stackexchange.com/q/420927/22142 or unix.stackexchange.com/q/281794/22142 or unix.stackexchange.com/q/26474/22142 etc
â don_crissti
Aug 13 at 15:37
"easier to manipulate in a script" may translate to wanting the files in the same order, in which case you may want leading zeroes?
â Jeff Schaller
Aug 13 at 15:41
Well, not really, they could even be shuffled, don't matter.
â user305251
Aug 13 at 15:43
are the "2 3 4 5" new filenames supposed to correspond to the leading part of the originals? or just start at 2 arbitrarily?
â Jeff Schaller
Aug 13 at 15:44
Could even start arbitrary, they will be shuffled in next stage of work anyway
â user305251
Aug 13 at 15:45
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This question already has an answer here:
Batch rename files to a sequential numbering
5 answers
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?
bash shell-script files rename
This question already has an answer here:
Batch rename files to a sequential numbering
5 answers
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?
This question already has an answer here:
Batch rename files to a sequential numbering
5 answers
bash shell-script files rename
bash shell-script files rename
edited Aug 13 at 15:43
Jeff Schaller
32.6k849110
32.6k849110
asked Aug 13 at 15:27
user305251
11
11
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.
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.
see unix.stackexchange.com/q/7446/22142 or unix.stackexchange.com/q/420927/22142 or unix.stackexchange.com/q/281794/22142 or unix.stackexchange.com/q/26474/22142 etc
â don_crissti
Aug 13 at 15:37
"easier to manipulate in a script" may translate to wanting the files in the same order, in which case you may want leading zeroes?
â Jeff Schaller
Aug 13 at 15:41
Well, not really, they could even be shuffled, don't matter.
â user305251
Aug 13 at 15:43
are the "2 3 4 5" new filenames supposed to correspond to the leading part of the originals? or just start at 2 arbitrarily?
â Jeff Schaller
Aug 13 at 15:44
Could even start arbitrary, they will be shuffled in next stage of work anyway
â user305251
Aug 13 at 15:45
add a comment |Â
see unix.stackexchange.com/q/7446/22142 or unix.stackexchange.com/q/420927/22142 or unix.stackexchange.com/q/281794/22142 or unix.stackexchange.com/q/26474/22142 etc
â don_crissti
Aug 13 at 15:37
"easier to manipulate in a script" may translate to wanting the files in the same order, in which case you may want leading zeroes?
â Jeff Schaller
Aug 13 at 15:41
Well, not really, they could even be shuffled, don't matter.
â user305251
Aug 13 at 15:43
are the "2 3 4 5" new filenames supposed to correspond to the leading part of the originals? or just start at 2 arbitrarily?
â Jeff Schaller
Aug 13 at 15:44
Could even start arbitrary, they will be shuffled in next stage of work anyway
â user305251
Aug 13 at 15:45
see unix.stackexchange.com/q/7446/22142 or unix.stackexchange.com/q/420927/22142 or unix.stackexchange.com/q/281794/22142 or unix.stackexchange.com/q/26474/22142 etc
â don_crissti
Aug 13 at 15:37
see unix.stackexchange.com/q/7446/22142 or unix.stackexchange.com/q/420927/22142 or unix.stackexchange.com/q/281794/22142 or unix.stackexchange.com/q/26474/22142 etc
â don_crissti
Aug 13 at 15:37
"easier to manipulate in a script" may translate to wanting the files in the same order, in which case you may want leading zeroes?
â Jeff Schaller
Aug 13 at 15:41
"easier to manipulate in a script" may translate to wanting the files in the same order, in which case you may want leading zeroes?
â Jeff Schaller
Aug 13 at 15:41
Well, not really, they could even be shuffled, don't matter.
â user305251
Aug 13 at 15:43
Well, not really, they could even be shuffled, don't matter.
â user305251
Aug 13 at 15:43
are the "2 3 4 5" new filenames supposed to correspond to the leading part of the originals? or just start at 2 arbitrarily?
â Jeff Schaller
Aug 13 at 15:44
are the "2 3 4 5" new filenames supposed to correspond to the leading part of the originals? or just start at 2 arbitrarily?
â Jeff Schaller
Aug 13 at 15:44
Could even start arbitrary, they will be shuffled in next stage of work anyway
â user305251
Aug 13 at 15:45
Could even start arbitrary, they will be shuffled in next stage of work anyway
â user305251
Aug 13 at 15:45
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
-2
down vote
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
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-2
down vote
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
add a comment |Â
up vote
-2
down vote
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
add a comment |Â
up vote
-2
down vote
up vote
-2
down vote
Thanks to the second link (Batch rename files to a sequential numbering) provided by @don_crissti in the first comment, problem solved.
Cheers.
Thanks to the second link (Batch rename files to a sequential numbering) provided by @don_crissti in the first comment, problem solved.
Cheers.
edited Aug 13 at 16:17
answered Aug 13 at 16:01
user305251
11
11
Two downgrades! LOL
â user305251
Aug 13 at 17:15
add a comment |Â
Two downgrades! LOL
â user305251
Aug 13 at 17:15
Two downgrades! LOL
â user305251
Aug 13 at 17:15
Two downgrades! LOL
â user305251
Aug 13 at 17:15
add a comment |Â
see unix.stackexchange.com/q/7446/22142 or unix.stackexchange.com/q/420927/22142 or unix.stackexchange.com/q/281794/22142 or unix.stackexchange.com/q/26474/22142 etc
â don_crissti
Aug 13 at 15:37
"easier to manipulate in a script" may translate to wanting the files in the same order, in which case you may want leading zeroes?
â Jeff Schaller
Aug 13 at 15:41
Well, not really, they could even be shuffled, don't matter.
â user305251
Aug 13 at 15:43
are the "2 3 4 5" new filenames supposed to correspond to the leading part of the originals? or just start at 2 arbitrarily?
â Jeff Schaller
Aug 13 at 15:44
Could even start arbitrary, they will be shuffled in next stage of work anyway
â user305251
Aug 13 at 15:45