Last active
April 5, 2022 13:49
-
-
Save igor-kamil/e9c6ecec6b420ffcda93b270ddab327a to your computer and use it in GitHub Desktop.
This file contains 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 | |
mv "$f" "$(mdls -name kMDItemContentCreationDate "$f" | sed s/kMDItemContentCreationDate...// | sed s/.+0000// | sed s/:/-/g | sed s/\ /_/g).${f##*.}"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment