CommandLineOneOffs


Copy the modified dates of files in one directory to the same set of files in another directory:

for i in *; do touch -r $i /path/to/files/$i; done

Useful when copying files over from an SD card to local folder, MacOS changes all times to current time.