linux mv multiple rename 1

linux mv multiple rename

j=0;

for i in *.jpg;

do let j+=1;

mv $i file$j.jpg ;

done

Here is what the above code is Doing:
1. The first line is a comment.
2. The second line is a for loop.
3. The third line is a counter.
4. The fourth line is a command to rename the files.

Similar Posts