How To copy Multiple files from more than one directory to single folder using find comand


I want to search some selected 5 lacs images and then copy this image file from multiple folder to single folder in linux. I have find the all the path of particular file through this < find / -type f -name “*.tif” > “abc.txt” > comand in .txt file.So that in this way i have path of all the images but all located in different- different path. which i have to bring in single directory.Please help me out to copy this in single folder.

You can use a pipe and xargs command as follows:

find  / -type  f -name *.tif  |  xargs  -i  cp {}  /destination_directory

destination_directory is the single file where you want to put all the images.