Add file extension to files with bash

后端 未结 10 1410
猫巷女王i
猫巷女王i 2020-11-29 16:24

What is the good way to add file extension \".jpg\" to extension-less files with bash?

10条回答
  •  猫巷女王i
    2020-11-29 16:50

    You can use move multiple files. I am a maintainer of this project. The syntax is simple.

    mmf files*
    

    It will open your $EDITOR with all files names, or vim by default and you can simply highlight the end of all file names using Ctrl+v+G in vim , save the file,quit and that it , all your files are renamed

提交回复
热议问题