AnsweredAssumed Answered

Shell Script to Copy Files

Question asked by ChrisVanBuren on Oct 3, 2018
Latest reply on Oct 9, 2018 by ChrisVanBuren

Hi, I know this should be easy but I am beating my head against it.  I know it is like a 2 second job for somebody who knows shell script. 

 

So, I want to copy all files (but not subfolders) from:

/Macintosh HD/Library/FileMaker Server/Data/Documents/ESKO DROP FOLDER/

 

To a SMB Windows Shared Drive

FileMaker_DropZone

 

Note that there are spaces in the folder names which seem important.

 

I have found adapted this from something I found on the internet:

find /Macintosh HD/Library/FileMaker Server/Data/Documents/ESKO DROP FOLDER/ -maxdepth 1 -type f -exec ; mv {} -t /FileMaker_DropZone

 

Comes back with this error: find: -exec: no terminating ";" or "+"

 

I have tried adding \; to the end as suggested on the internet. 

 

THANKS.  I do appreciate the help.

 

- Chris Van Buren

Outcomes