request for support in optimization, fix shell command for mac

Asked

Viewed 35 times

0

I am looking for the best way to optimize the following command shell in the Mac OSX, in order to fulfill the function that is intended which is basically to copy all files xx to the folder xx2:

ditto $(mdfind xx1) ~/Desktop/xx2

or else

ditto $(mdfind -onlyin ~/xx1) ~/Desktop/xx2

1 answer

0

use the rsync

rsync -av xx1/ xx2/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.