复制查到到的文件到另一个目录(shell脚本)

Test:find ../../res.bak/item/ -type f -name "*.jpg" |xargs -n1 -i echo {}."abc"

控制台上可看到如下信息:

 

find ../../res.bak/item/ -type f -name "*.jpg" |xargs -n1 -i cp {} .

 

参考:

Xargs Command Examples

linux-unix-bsd-xargs-construct-argument-lists-utility

posted @ 2012-12-31 18:38  meteoric_cry  阅读(2530)  评论(0编辑  收藏  举报