I have 200 files in a folder. I downloaded them in a certain order -- often only a few seconds apart. I would like to append a number to the beginning of each of the files.
So the first file I downloaded (the oldest one) would need to change from name.txt
to 001_name.txt
.
All the way up to the last file (most recently downloaded) changing from name.txt
to 200_name.txt
.
How can I do it using the command-line?