Linux下bash脚本批量修改文件名大写/小写 (Change file name to uppercase/lowercase using bash script under Linux)

# Usage: chfcase [-lur] <file/directory> <file/directory> ...
# -l change file name to lower case (default)    更改文件名为小写(默认)
# -u change file name to upper case  更改文件名为大写
# -d change directory  对目录执行更改操作
# -f change normal file  对普通文件执行更改操作
# -r recursive  递归搜索子目录
#

举例Example:

更改当前目录及所有子目录普通文件名为小写 Change all normal file names to lowercase under current directory recursively:

chfcase -lfr *

将当/var/html下的子目录更改为大写 Change directory name which under /var/www to upper case

chfcase -ud /var/html/*

bash脚本下载:bash script download:
https://gitee.com/mjpclab/Shell-Utility/raw/master/bin/fn-case
https://raw.githubusercontent.com/mjpclab/Shell-Utility/master/bin/fn-case