Convert all file extensions to lower-case

前端 未结 11 1965
生来不讨喜
生来不讨喜 2020-12-07 14:06

I\'m trying to lower-case all my extensions regardless of what it is. So far, from what I\'ve seen, you have to specify what file extensions you want to convert to lower-cas

11条回答
  •  悲&欢浪女
    2020-12-07 14:48

    recursively for all one fine solution:

    find -name '*.JPG' | sed 's/\(.*\)\.JPG/mv "\1.JPG" "\1.jpg"/' |sh
    

    The above recursively renames files with the extension "JPG" to files with the extension "jpg"

提交回复
热议问题