It is the end of the semester or you have just finished a large project and your files are in a state, now you want to organise them by extention
Here is a script to help you do that
Bash
#!/bin/bash
count=1
for file in *.jpg; do
mv "$file" "image_$count.jpg"
((count++))
done
Python
#!/bin/bash
count=1
for file in *.jpg; do
mv "$file" "image_$count.jpg"
((count++))
done