find . -name 'target.java' |xargs -i cp src/target.java {} 转载于:https://blog.51cto.com/12043555/1942430