分类: LINUX
2013-02-01 09:12:44
#!/bin/bash let i=1 max=$(find | sed 's#[^/]##g' | sort -r | head -1 | wc -c) while [ $i -lt $max ] do find -mindepth $i -maxdepth $i -name '*[A-Z]*' | while read file; do mv $file `echo $file|tr 'A-Z' 'a-z'`; done let i++ done