I have a directory full of files named
image_1.jpg
image_2.jpg
...
image_10.jpg
...
image_335.jpg
Now I want to use a command line tool which expects the images to be alphabetical ordered. But the alphabetical order of these filenames is: image_100.jpg image_101.jpg ... image_10.jpg image_11.jpg ... image_1.jpg ...
.
How can I rename these files using a short shell / bash command? I've found that sed
is possible a way to go, but this tool is a mystery to me.