find ./ -name '*.hh' -exec rename "s/.hh/.h/g" \{\} \; 查找当前目录下 find . -print|xargs grep -n "opt_output_file"