文件名pascal转underscore
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
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