How to Batch Rename Files in a macOS Terminal?

前端 未结 7 1147
北荒
北荒 2020-11-28 01:07

I have a folder with a series of files named:

prefix_1234_567.png
prefix_abcd_efg.png

I\'d like to batch remove one underscore and

相关标签:
7条回答
  • 2020-11-28 01:47

    To rename files, you can use the rename utility:

    brew install rename

    For example, to change a search string in all filenames in current directory:

    rename -nvs searchword replaceword *
    

    Remove the 'n' parameter to apply the changes.

    More info: man rename

    0 讨论(0)
提交回复
热议问题