Renaming a set of files to 001, 002, … on Linux

后端 未结 6 544
离开以前
离开以前 2020-12-05 07:51

I originally had a set of images of the form image_001.jpg, image_002.jpg, ...

I went through them and removed several. Now I\'d like to rename the leftover files ba

6条回答
  •  独厮守ぢ
    2020-12-05 08:29

    Try the following script:

    numerate.sh

    This code snipped should do the job:

    ./numerate.sh -d  -b  -L 3 -p image_ -s .jpg -o numerically -r
    

提交回复
热议问题