for file in ./* ; do mv "$file" "$(echo $file|sed -e 's/\([A-Z]\)/_\L\1/g' -e 's/^.\/_//')" ; done

 

 

参考:

https://askubuntu.com/questions/844738/rename-all-files-in-a-folder-from-camel-case-to-lowercase-and-put-underscore-to

 

相关文章:

  • 2021-10-30
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案