把名字中有[template]xxx文件的替换成123xxx #! /bin/sh for i in `find ./ -name "\[template\]*"`; do mv $i ${i/\[template\]/123} done