application for optimization support, shell command correction for mac

0

I'm wondering how to optimize the following shell command in Mac OSX in order to fulfill the function you want to basically copy all files xx folder to the xx2 folder:

ditto $(mdfind xx1) ~/Desktop/xx2

or

ditto $(mdfind -onlyin ~/xx1) ~/Desktop/xx2
    
asked by anonymous 04.07.2016 / 15:57

1 answer

0

use rsync

rsync -av xx1/ xx2/
    
29.06.2017 / 00:23