Created
June 28, 2019 22:24
-
-
Save judavi/ed4bc2fdbdcbb03a05eb7c1583d43f8e to your computer and use it in GitHub Desktop.
Change creation date of all files in directory MacOS
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
for f in *; do t=$(echo $f | sed -E 's/[-. mov]//g'); touch -mt 201906211300 $f; done | |
#for f in *; do t=$(echo $f | sed -E 's/[-. mov]//g'); touch -mt YYYYMMDDHHMM $f; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment