Created
May 13, 2017 08:18
-
-
Save cmittendorf/732e7ad4c9114cd24fda91aa3fd2c5ed to your computer and use it in GitHub Desktop.
A script for macOS which copies the created date from one file to another.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ $# != 2 ]; then | |
echo `basename $0`" <src file> <dst file>" | |
exit | |
fi | |
SetFile -d '$(GetFileInfo -m "$1")' "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment