完美脚本1#!/bin/shfor i in `find ./ -name "*.c"`; dodir=`dirname $i`echo `basename $i` sed 's/.c$/.C/' (read file && mv $i $dir"/"$file)done完美脚本2#!/bin/shfor i in `find ./ -name "*.c"`; dodir=`dirname $i`tmp1=`basename $i`file=`echo $tmp1 sed 's/.c$/.C/'`mv $i $dir"/"$filedone完美脚本3#!/bin/shfor i in `find ./ -name "*.c"`; dodir=`dirname $i`file=`echo \`basename $i\` sed 's/.c$/.C/'`mv $i $dir"/"$filedone
(出处:http://www.sheup.com)