Rename files and directories recursively under ubuntu /bash

后端 未结 8 1162
执念已碎
执念已碎 2020-11-29 18:50

I want to rename all files and directories that contain the word \"special\" to \"regular\". It should maintain case sensitivity so \"Special\" won\'t become \"regular\".

8条回答
  •  孤城傲影
    2020-11-29 19:29

    For rename version rename from util-linux 2.23.2 the following command worked for me:

    find . -type f -exec rename mariadb mariadb-proxy '{}' \;

提交回复
热议问题