find . -name "*tif" -type f -print0 | xargs -0 -n 1 -I file cp file ~/tmpimg/

http://www.cyberciti.biz/faq/linux-unix-bsd-xargs-construct-argument-lists-utility/
http://www.linuxplanet.com/linuxplanet/print/6522

find . -iname "*foobar*" -exec cp -n "{}" ~/foo/bar \;

cp:
 -n : don't overwrite if exists
Go to index of articles.

Share on