(Elementary user)
I would like to make a script that when executed renames the files in a directory by adding a number that increments by the value of '1' with each file it processes.
For example:
My_first_file.jpg
Another_file.jpg
ABC_file.jpg
Will be renamed to:
My_first_file_001.jpg
Another_file_002.jpg
ABC_file_003.jpg
Can anyone give me any pointers, I would like to use a shell script if possible?
Best regards
I would like to make a script that when executed renames the files in a directory by adding a number that increments by the value of '1' with each file it processes.
For example:
My_first_file.jpg
Another_file.jpg
ABC_file.jpg
Will be renamed to:
My_first_file_001.jpg
Another_file_002.jpg
ABC_file_003.jpg
Can anyone give me any pointers, I would like to use a shell script if possible?
Best regards