I have a directory containing bunch of
.txt files , I need a command to rename these files by one command , so their name will be :
file1.txt , file2.txt, file3.txt , etc .
Any Help ?
You can use this in terminal to rename files as you wished,
It will do the job.
You can use the rename command, which is usually included in a default installation:
Use the -n flag if you want to do a test first:
The way this works is, for each argument, it executes the perl
The following command will also rename files incrementally :
Then run this script :