效果不错:
#!/bin/bash find . -type d > dir.txt for dir in `cat dir.txt` do cd $dir ls |awk '$0 !~ tolower($0){printf("mv %s %s\n", $0, tolower($0))|"sh"}' done
效果不错:
#!/bin/bash find . -type d > dir.txt for dir in `cat dir.txt` do cd $dir ls |awk '$0 !~ tolower($0){printf("mv %s %s\n", $0, tolower($0))|"sh"}' done