View Single Post
  #2   (View Single Post)  
Old 28th May 2011
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Code:
find . -type f -name "some*.fil" -exec cp -iv {}  /destination/folder \;
# or less likely...
find . -type f -name "some*.fil" -print0 | xargs -J % cp -iv  /destination %
The second might fail if cp does not handle the incoming data with the addtion of a parameter, in other words it might be missing an item in the line to not fail.
disclaimer UNTESTED.
__________________
FreeBSD 13-STABLE
Reply With Quote