find . -name "*.c" -exec grep array {} -H \; 同时可以加-i,表示忽略大小写: find . -name "*.c" -exec grep -i array {} -H \;