Rename files in folder

Is there a command I can run to re-name an entire directory of files?

Say I have 18 files in a dir.

1.jpg
52.jpg
92.jpg
etc
etc

Anyway to rename all of them (with a single command) so they are automatically 1,2,3,4,5,etc,etc.jpg?

Thanks,
Ryan

 

 

 

 

Top