shell脚本--根据用户提供的目录,将目录下大写的文件名改成小写

1.用for循环结合if判断,利用tr命令进行大小写转换:bash #!/bin/bash [ $# -eq 0 ] && echo "must be give a canshu" && exit      #判断用户是否输入了参数 [ ! -d $1 ] && echo "the $1 is not a directory" && exit     #判断用户输入的参数是否为目录 cd $1 |
相关文章
相关标签/搜索