I saw how to rename many files at once and changing their extensions, like this example
$ rename -v 's/\.htm$/\.html/' *.htm
3.htm renamed as 3.html
4.htm renamed as 4.html
5.htm renamed as 5.html
The only problem as you know in Linux, it doesn't need extensions, so my files are without them and want to add jpg extension to them at the same time giving them random number name like 0.jpg, 1.jpg ...
If you could give me a simple bash command to do it and thank you.