Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

addictzz

macrumors 6502
Original poster
Jun 11, 2012
392
30
Hi, is there a way to copy files using terminal in a sorted order? I am doing this so I can track progress as well as getting the correct date-created in the destination folder.

So here is the problem.:
In folder SOURCE, I have 3 files: FileA, FileB, FileC. I want to copy the files in this folder to folder TARGET but I want terminal to copy FileA first and then FileB & FileC. I am using (rsync -r --progress) to copy to check the progress status. Is there anymore command I could add so that I can copy them in in a certain order? (alphabetical preferred).

Thanks!
[doublepost=1473151360][/doublepost]I sort of answering myself. rsync seems to be transferring files in a sorted order by default.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.