分类:
2006-03-30 13:40:20
从这个问题中,发现了自己的基础知识还有待提高。居然不知道tr命令。
感谢CU论坛高人:零二年的夏天,寂寞烈火
chinaunix网友2011-05-12 23:14:39
A more simpler way to do this: find . -name "*.htm"|while read file;do echo "mv $file $(echo $file|awk '{print substr($0,1,'"$(($n-1))"')toupper(substr($0,'"$n"',1))substr($0,'"$(($n+1))"',length($0))}')"|sh done