Our challenge is that we need to search and duplicate approx 3000 images into a new folder.
The list of image names is a csv file. The files are all on one drive, but in many different folders.
automationmacos
Our challenge is that we need to search and duplicate approx 3000 images into a new folder.
The list of image names is a csv file. The files are all on one drive, but in many different folders.
Best Answer
Using Bash:
IFS
is the input field separator. Declare as,
for.csv
.find . -path
searches through your home directory recursively for names read fromcol1
, returning the full path.exec
executes thecp
command on{}
, which represents all the resultsfind
returns/DESIRED/DIRECTORY
and\;
is required for terminating theexec
command